shiveshnavin commited on
Commit
a80c2bd
·
1 Parent(s): d1f5766
Files changed (1) hide show
  1. start.sh +1 -2
start.sh CHANGED
@@ -6,7 +6,7 @@ set -e
6
  # If your app needs env vars set, ensure they are available to the container at runtime.
7
 
8
  echo "Starting app (npm start) in background..."
9
- npm start > /var/log/app.stdout 2> /var/log/app.stderr &
10
 
11
  APP_PID=$!
12
  echo "App PID: $APP_PID"
@@ -16,7 +16,6 @@ sleep 1
16
 
17
  # Start nginx in foreground to keep the container alive
18
  echo "Starting nginx (foreground)..."
19
- npm start &
20
  nginx -g 'daemon off;'
21
 
22
  # when nginx exits, container exits (and child app will be killed)
 
6
  # If your app needs env vars set, ensure they are available to the container at runtime.
7
 
8
  echo "Starting app (npm start) in background..."
9
+ npm start &
10
 
11
  APP_PID=$!
12
  echo "App PID: $APP_PID"
 
16
 
17
  # Start nginx in foreground to keep the container alive
18
  echo "Starting nginx (foreground)..."
 
19
  nginx -g 'daemon off;'
20
 
21
  # when nginx exits, container exits (and child app will be killed)