File size: 239 Bytes
8969f81
 
 
 
 
 
 
1
2
3
4
5
6
7
8
#!/bin/sh

defined_envs=$(printf '${%s} ' $(awk "END { for (name in ENVIRON) { print ( name ~ /NGINX_/ ) ? name : \"\" } }" < /dev/null ))

envsubst "$defined_envs" < nginx.conf > /etc/nginx/nginx.conf

nginx && node server/dist/server.js