Skip to content

Commit 0a2fafb

Browse files
committed
Deplyoment Seeting
1 parent 0406a6c commit 0a2fafb

4 files changed

Lines changed: 22 additions & 1 deletion

File tree

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/node_modules
2+
.gitignore
3+
.git

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:12
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY package*.json ./
6+
7+
RUN npm install
8+
9+
10+
COPY . .
11+
12+
EXPOSE 5555
13+
CMD ["npm","run","start"]

heroku.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build:
2+
docker:
3+
web: Dockerfile
4+
run:
5+
web: npm run start

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"dev" : "nodemon server.js"
8+
"start" : "nodemon server.js"
99
},
1010
"keywords": [],
1111
"author": "",

0 commit comments

Comments
 (0)