mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
16 lines
289 B
Bash
16 lines
289 B
Bash
#!/bin/bash
|
|
|
|
# Run envsubst on template
|
|
/etc/nginx/envsubst-on-templates.sh
|
|
|
|
# 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 $? |