oneuptime/Nginx/run.sh

16 lines
332 B
Bash
Raw Normal View History

#!/bin/bash
2024-01-29 08:47:51 +00:00
# Print out conf file
envsubst < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf
# Start the first process
nginx -c /etc/nginx/nginx.conf -g "daemon off;" &
# Start the second process
npm start &
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?