diff --git a/package.json b/package.json index 53b9b48..315aa58 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "prod": "cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && env NODE_ENV=production node dist/app.js", "tsc": "rm -rf dist/ && tsc && cp -r public dist/public", "dev": "rm -rf dist/ && tsc && cp -r public dist/public && node --inspect ./dist/app.js", - "build-binaries": "rm -rf dist/ && tsc && cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && pkg . --target node12-alpine-x64,node12-macos-x64 --out-path binaries" + "build-binaries": "rm -rf dist/ && tsc && cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && pkg . --target node12-alpine-x64,node12-macos-x64 --out-path binaries", + "start-ecs": "export NODE_ALIAS=$(curl $ECS_CONTAINER_METADATA_URI | echo $(jq -r .DockerName)) && export NODE_IP=$(curl $ECS_CONTAINER_METADATA_URI | echo $(jq -r .DockerName).$NODE_DOMAIN) && export NODE_ENV=production && node dist/app.js" }, "keywords": [], "author": "",