Skip to content

Commit

Permalink
added the forever package
Browse files Browse the repository at this point in the history
  • Loading branch information
kiloutyg committed Mar 21, 2024
1 parent 9e45032 commit 60e6441
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions API/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "index.js",
"scripts": {
"start": "nodemon index.js -e js",
"prod": "node index.js",
"test": "jest"
},
"keywords": [],
Expand All @@ -22,7 +21,8 @@
"pdf-lib": "^1.17.1",
"pdfkit": "^0.14.0",
"sharp": "^0.33.2",
"text-to-image": "^5.2.0"
"text-to-image": "^5.2.0",
"forever": "^4.0.3"
},
"devDependencies": {
"jest": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion API/prod-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export NODE_ENV=production;

npm install --only=production;

npm prod;
forever start index.js;
8 changes: 4 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
- "3306"
networks:
vpcbr:
ipv4_address: 172.23.0.2
ipv4_address: 172.25.0.2
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: unless-stopped
Expand All @@ -31,7 +31,7 @@ services:
- traefik.http.routers.phpmyadminposign.entrypoints=web
networks:
vpcbr:
ipv4_address: 172.23.0.3
ipv4_address: 172.25.0.3
depends_on:
- database

Expand All @@ -40,8 +40,8 @@ networks:
driver: bridge
ipam:
config:
- subnet: 172.23.0.0/16
- gateway: 172.23.0.1
- subnet: 172.25.0.0/16
- gateway: 172.25.0.1



Expand Down
6 changes: 0 additions & 6 deletions env-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ ${PROXY_ENV}
PORT: 80
${PROXY_ENV}
APP_TIMEZONE: ${TIMEZONE}
volumes:
- ./FRONT:/usr/local/apache2/htdocs/
labels:
- traefik.enable=true
- traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`)
Expand Down Expand Up @@ -181,8 +179,6 @@ ${PROXY_ENV}
PORT: 80
${PROXY_ENV}
APP_TIMEZONE: ${TIMEZONE}
volumes:
- ./FRONT:/usr/local/apache2/htdocs/
labels:
- traefik.enable=true
- traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`)
Expand Down Expand Up @@ -258,8 +254,6 @@ ${PROXY_ENV}
PORT: 80
${PROXY_ENV}
APP_TIMEZONE: ${TIMEZONE}
volumes:
- ./FRONT:/usr/local/apache2/htdocs/
labels:
- traefik.enable=true
- traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`)
Expand Down

0 comments on commit 60e6441

Please sign in to comment.