-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun.bash
More file actions
21 lines (16 loc) · 805 Bytes
/
Copy pathrun.bash
File metadata and controls
21 lines (16 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
CONFIG_FILE="dist/static/config.js"
SERVICE_INFO_FILE="dist/static/service-info.json"
echo "[bento_web] [entrypoint] creating dist/static"
mkdir -p "dist/static"
# ----- Begin instance config creation --------------------------------
echo "[bento_web] [entrypoint] writing ${CONFIG_FILE}"
node ./create_config_prod.js # Echo out to logs
node ./create_config_prod.js > "${CONFIG_FILE}"
# ----- End -----------------------------------------------------------
# ----- Begin /service-info creation ----------------------------------
echo "[bento_web] [entrypoint] writing ${SERVICE_INFO_FILE}"
node ./create_service_info.js > "${SERVICE_INFO_FILE}"
# ----- End -----------------------------------------------------------
echo "[bento_web] [entrypoint] starting NGINX"
nginx -g 'daemon off;'