From b5a06246332b0201227b2f7934a5112e31093e7c Mon Sep 17 00:00:00 2001 From: ZZY <2450266535@qq.com> Date: Tue, 30 Jul 2024 22:32:14 +0800 Subject: [PATCH] =?UTF-8?q?dev=20=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E7=9A=84python=E8=84=9A=E6=9C=AC,=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E9=85=8D=E5=90=88=E5=90=8E=E7=AB=AF=E7=9A=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.py | 13 ++++++++++--- utils.js | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/start.py b/start.py index b01af27..d361eeb 100644 --- a/start.py +++ b/start.py @@ -12,9 +12,16 @@ def run_command(command): def main(): # Define the commands you want to run commands = [ - 'git clone https://github.com/yourusername/yourproject.git', - 'cd yourproject && npm install', - 'npm run build' + # 'git clone https://github.com/yourusername/yourproject.git', + 'cd vue-project', + 'git pull', + 'npm install', + 'npm run build', + 'cd ..', + 'git pull', + 'npm install', + 'cp -r vue-project/dist/* ./dist' + 'npm start' ] # Run each command in sequence diff --git a/utils.js b/utils.js index 8053d78..6010702 100644 --- a/utils.js +++ b/utils.js @@ -5,7 +5,7 @@ require('dotenv').config(); utils = {}; utils.ROOT_PATH = path.resolve(__dirname); utils.VIEWS_PATH = path.resolve(utils.ROOT_PATH, 'views'); - utils.DATA_PATH = path.resolve(utils.ROOT_PATH, '.data'); + utils.DATA_PATH = path.resolve(utils.ROOT_PATH, 'dist/data'); utils.DATA_JSON_PATH = path.resolve(utils.DATA_PATH, 'json'); utils.DATA_DB_PATH = path.resolve(utils.DATA_PATH, 'db'); utils.DATA_CONFIG_PATH = path.resolve(utils.DATA_PATH, 'config');