You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
406 B
17 lines
406 B
#!/bin/bash |
|
|
|
NGINX_CONFIG=/etc/nginx/conf.d/nginx-server.conf |
|
|
|
echo "DEV_API_URL=${DEV_API_URL}" |
|
sed -i "s#DEV_API_URL#${DEV_API_URL}#g" ${NGINX_CONFIG} |
|
|
|
echo "TEST_API_URL=${TEST_API_URL}" |
|
sed -i "s#TEST_API_URL#${TEST_API_URL}#g" ${NGINX_CONFIG} |
|
|
|
echo "PROD_API_URL=${PROD_API_URL}" |
|
sed -i "s#PROD_API_URL#${PROD_API_URL}#g" ${NGINX_CONFIG} |
|
|
|
cat ${NGINX_CONFIG} |
|
|
|
echo "start nginx" |
|
nginx -g "daemon off;" |