Skip to content

Commit

Permalink
fix(pm2): `Using --env [env] without passing the ecosystem.config.js …
Browse files Browse the repository at this point in the history
…does not work`
  • Loading branch information
adrienjoly committed Dec 27, 2023
1 parent 916848e commit 6882aae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/restart.sh
Expand Up @@ -17,10 +17,9 @@ GIT_REPOSITORY_URL="git@github.com:openwhyd/openwhyd.git"

echo "👋 Restarting Openwhyd server ${VERSION} on port ${PORT}, with ${NODE}..."
cd ${ROOT_DIR}
pwd
source env-vars-local.sh
echo "AUTH0_ISSUER_BASE_URL=${AUTH0_ISSUER_BASE_URL}"
DD_GIT_COMMIT_SHA="${GIT_COMMIT_SHA}" \
DD_GIT_REPOSITORY_URL="${GIT_REPOSITORY_URL}" \
WHYD_PORT=${PORT} \
npx --yes pm2 restart app.js --interpreter=${NODE} --update-env --env production
npx --yes pm2 restart app.js --interpreter=${NODE} --update-env

0 comments on commit 6882aae

Please sign in to comment.