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');