diff --git a/serverinfo/pkh-post-receive b/serverinfo/pkh-post-receive index 47971c7..5404e80 100644 --- a/serverinfo/pkh-post-receive +++ b/serverinfo/pkh-post-receive @@ -82,6 +82,9 @@ rsync -av --delete \ rsync -av packages/ $TARGET_BACKEND/packages/ cp package.json bun.lock ecosystem.config.js $TARGET_BACKEND/ +# Rewrite ecosystem.config.js on the fly for pkh +sed -i 's/homaroma/pkh/g' $TARGET_BACKEND/ecosystem.config.js +sed -i 's/PORT: 3002/PORT: 3003/g' $TARGET_BACKEND/ecosystem.config.js cd $TARGET_BACKEND echo "Installing backend dependencies..." @@ -127,6 +130,9 @@ rsync -av \ $TEMP_DIR/apps/website/.next/static/ $TARGET_WEBSITE/apps/website/.next/static/ cp $TEMP_DIR/ecosystem.config.js $TARGET_WEBSITE/ +# Rewrite ecosystem.config.js on the fly for pkh +sed -i 's/homaroma/pkh/g' $TARGET_WEBSITE/ecosystem.config.js +sed -i 's/PORT: 3002/PORT: 3003/g' $TARGET_WEBSITE/ecosystem.config.js # I. Fix Permissions echo ">>> Fixing Permissions..."