Skip to content

Instantly share code, notes, and snippets.

@frontdevops
Created August 3, 2016 08:05
Show Gist options
  • Save frontdevops/20b8465a633d1bad21ac337c5a4ae7e0 to your computer and use it in GitHub Desktop.
Save frontdevops/20b8465a633d1bad21ac337c5a4ae7e0 to your computer and use it in GitHub Desktop.
{
"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