Skip to content

Commit

Permalink
💚 build(config): Update pm2 config
Browse files Browse the repository at this point in the history
  • Loading branch information
web-ppanel committed Dec 26, 2024
1 parent 9eca618 commit d95b425
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
14 changes: 7 additions & 7 deletions apps/user/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ NEXT_PUBLIC_API_URL=https://api.ppanel.dev
# Contact Email
[email protected]
# 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
[email protected]
Expand Down
11 changes: 6 additions & 5 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
}
Expand Down

0 comments on commit d95b425

Please sign in to comment.