diff --git a/.gitignore b/.gitignore index d9e7b18..649a1d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,10 @@ notes.md todo.md +# just for testing +binaries/nodeapp-macos +binaries/nodeapp-alpine + dist/public/uploads dist/config/app.json diff --git a/package.json b/package.json index 529fa05..3297a92 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "start-hosting": "HOSTING_PROVIDER=true ts-node ./app.ts", "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" + "dev": "rm -rf dist/ && tsc && cp -r public dist/public && node --inspect ./dist/app.js", + "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": "",