Created
August 3, 2016 08:05
-
-
Save frontdevops/20b8465a633d1bad21ac337c5a4ae7e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"start-prod": "API_HOST=$(curl -s \"http://${ETCD_HOST:-10.0.100.100}:${ETCD_PORT:-80}/v2/keys/config-project/frontend/service/restapi\"|jq '.node.nodes[0].value'|tr -d '\"') better-npm-run start-prod", | |
}, | |
"betterScripts": { | |
"start-prod": { | |
"command": "node ./bin/server.js", | |
"env": { | |
"NODE_ENV": "production", | |
"NODE_PATH": "./src", | |
"PORT": "48884" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment