diff --git a/.ebextensions/02_nodecommand.config b/.ebextensions/02_nodecommand.config new file mode 100644 index 0000000..e4c9f0a --- /dev/null +++ b/.ebextensions/02_nodecommand.config @@ -0,0 +1,4 @@ +# 02_nodecommand.config +option_settings: + aws:elasticbeanstalk:container:nodejs: + NodeCommand: "npm run start:prod" \ No newline at end of file diff --git a/.gitignore b/.gitignore index ed072b6..9f1cbe5 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,9 @@ lib-cov *.out *.pid package-lock.json + +# Elastic Beanstalk Files +.elasticbeanstalk/* +!.elasticbeanstalk/*.cfg.yml +!.elasticbeanstalk/*.global.yml +.ebextensions/01_envvar.config diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..f380845 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +# Force npm to run node-gyp also as root, preventing permission denied errors in AWS with npm@5 +unsafe-perm=true \ No newline at end of file