diff --git a/.ebextensions/nodecommand.config b/.ebextensions/nodecommand.config deleted file mode 100644 index b487bd4..0000000 --- a/.ebextensions/nodecommand.config +++ /dev/null @@ -1,4 +0,0 @@ -option_settings: - - namespace: aws:elasticbeanstalk:container:nodejs - option_name: NodeCommand - value: "npm start" \ No newline at end of file diff --git a/ProcFile b/ProcFile new file mode 100644 index 0000000..e8f79ea --- /dev/null +++ b/ProcFile @@ -0,0 +1 @@ +web: npm start \ No newline at end of file diff --git a/package.json b/package.json index b16f1d2..c86735b 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "scripts": { "start:dev": "nodemon app.js", "start": "node app.js", - "test": "mocha ||true" + "test": "mocha ||true", + "deploy": "npm run build && npm run start" }, - "author": "", "license": "ISC", "dependencies": { @@ -45,4 +45,4 @@ "nodemon": "^2.0.7", "supertest": "^6.1.3" } -} +} \ No newline at end of file