Skip to content

Commit

Permalink
fix: Downgrade node version
Browse files Browse the repository at this point in the history
Downgraded node to ^14.0.0 to fix issue with node-archiver nodejs/node#37027
  • Loading branch information
prphntm63 committed Jan 12, 2023
1 parent 9d8ba04 commit ee8f094
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16
FROM node:14

WORKDIR /usr/src/app
COPY package*.json ./
Expand All @@ -18,5 +18,4 @@ RUN npm install
COPY . .

EXPOSE 8080
CMD ["npx", "sequelize" "db:migrate"]
CMD ["node", "./bin/www"]
CMD npx sequelize db:migrate && node ./bin/www
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "GPL-3.0",
"scripts": {
"heroku-postbuild": "sequelize db:migrate && npm install",
"start": "node ./bin/www",
"start": "npx sequelize db:migrate && node ./bin/www",
"debug": "nodemon --inspect ./bin/www",
"migrate:dev": "npx sequelize-cli db:migrate",
"migrate:staging": "npx sequelize-cli db:migrate --url postgres://user:password@localhost:5432/bjcp-scoresheet",
Expand Down Expand Up @@ -55,7 +55,10 @@
"lint-staged": "^10.5.1",
"nodemon": "^2.0.4",
"prettier": "^2.1.2",
"sqlite3": "^5.0.3"
"sqlite3": "^5.1.4"
},
"engines": {
"node": "^14.0.0"
},
"husky": {
"hooks": {
Expand Down
File renamed without changes.
Binary file removed public/modified-scoresheet-2019.pdf
Binary file not shown.

0 comments on commit ee8f094

Please sign in to comment.