Skip to content

Commit

Permalink
do not use npm to start backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Mar 7, 2024
1 parent adc9b69 commit 6e6f9c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/start.backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ SCRIPT_DIR=$(dirname $SCRIPT_PATH)/../backend
LOG_FILE=$SCRIPT_DIR/../log/$(date +"%Y-%m-%d_%T")_pm2.backend.log

cd $SCRIPT_DIR
NODE_ENV=production pm2 start --name backend "npm run start" -l $LOG_FILE --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS'
pm2 save
NODE_ENV=production TZ=UTC TS_NODE_BASEURL=./build pm2 start --name backend "node -r tsconfig-paths/register build/src/index.js" -l $LOG_FILE --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS'
pm2 save

0 comments on commit 6e6f9c1

Please sign in to comment.