From d95b425060a101d1eb9297718002bfca1b1a603a Mon Sep 17 00:00:00 2001 From: "web@ppanel" Date: Thu, 26 Dec 2024 19:32:22 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20build(config):=20=20Update=20pm2?= =?UTF-8?q?=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user/.env.template | 14 +++++++------- scripts/publish.sh | 11 ++++++----- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/apps/user/.env.template b/apps/user/.env.template index 6e8328a..e061a1b 100644 --- a/apps/user/.env.template +++ b/apps/user/.env.template @@ -8,13 +8,13 @@ NEXT_PUBLIC_API_URL=https://api.ppanel.dev # Contact Email NEXT_PUBLIC_EMAIL=support@ppanel.dev # Community Links -NEXT_PUBLIC_TELEGRAM_LINK=https://t.me/VPNboardChat -NEXT_PUBLIC_TWITTER_LINK=https://github.com/perfect-panel/ppanel-user-web -NEXT_PUBLIC_DISCORD_LINK=https://github.com/perfect-panel/ppanel-user-web -NEXT_PUBLIC_INSTAGRAM_LINK=https://github.com/perfect-panel/ppanel-user-web -NEXT_PUBLIC_LINKEDIN_LINK=https://github.com/perfect-panel/ppanel-user-web -NEXT_PUBLIC_FACEBOOK_LINK=https://github.com/perfect-panel/ppanel-user-web -NEXT_PUBLIC_GITHUB_LINK=https://github.com/perfect-panel/ppanel-user-web +NEXT_PUBLIC_TELEGRAM_LINK=https://t.me/ppanel +NEXT_PUBLIC_TWITTER_LINK=https://github.com/perfect-panel/ppanel-web +NEXT_PUBLIC_DISCORD_LINK=https://github.com/perfect-panel/ppanel-web +NEXT_PUBLIC_INSTAGRAM_LINK=https://github.com/perfect-panel/ppanel-web +NEXT_PUBLIC_LINKEDIN_LINK=https://github.com/perfect-panel/ppanel-web +NEXT_PUBLIC_FACEBOOK_LINK=https://github.com/perfect-panel/ppanel-web +NEXT_PUBLIC_GITHUB_LINK=https://github.com/perfect-panel/ppanel-web # Default Login User NEXT_PUBLIC_DEFAULT_USER_EMAIL=admin@ppanel.dev diff --git a/scripts/publish.sh b/scripts/publish.sh index aa7fa8c..f676f67 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -57,12 +57,9 @@ for ITEM in "${PROJECTS[@]}"; do # Copy build output and static resources to the build directory PROJECT_BUILD_DIR=$OUT_DIR/$PROJECT - mkdir -p $PROJECT_BUILD_DIR cp -r $PROJECT_PATH/.next/standalone/. $PROJECT_BUILD_DIR/ - mkdir -p $PROJECT_BUILD_DIR/$PROJECT_PATH/.next/static - cp -r $PROJECT_PATH/.next/static/ $PROJECT_BUILD_DIR/$PROJECT_PATH/.next/static - mkdir -p $PROJECT_BUILD_DIR/$PROJECT_PATH/public - cp -r $PROJECT_PATH/public/ $PROJECT_BUILD_DIR/$PROJECT_PATH/public + cp -r $PROJECT_PATH/.next/static $PROJECT_BUILD_DIR/$PROJECT_PATH/.next/ + cp -r $PROJECT_PATH/public $PROJECT_BUILD_DIR/$PROJECT_PATH/ # Generate ecosystem.config.js for the project ECOSYSTEM_CONFIG="$PROJECT_BUILD_DIR/ecosystem.config.js" @@ -72,6 +69,10 @@ module.exports = { { name: "$PROJECT", script: "$PROJECT_PATH/server.js", + interpreter: "bun", + watch: ["$PROJECT_PATH"], + instances: "max", + exec_mode: "cluster", env: { $ENV_VARS }