Skip to content

Commit

Permalink
attempt to fix deployment error
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Nov 30, 2019
1 parent 14d5b83 commit 67e2fc3
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 134 deletions.
1 change: 0 additions & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"dev": "tsnd --respawn --transpileOnly server/app.ts",
"build": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"postinstall": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"prestart": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"start": "node production-server/app.js",
"now": "now && now alias",
"now-rm": "now rm saas-api --safe --yes",
Expand Down
9 changes: 9 additions & 0 deletions app/.ebextensions/00_permissions.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/00_permissions.sh":
mode: "000755"
owner: root
group: root
content: |
#!/usr/bin/env bash
chown -R nodejs:nodejs /tmp/.npm
chown -R nodejs:nodejs /tmp/.config
3 changes: 1 addition & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"dev": "tsnd --respawn --transpileOnly --project tsconfig.server.json --ignore-watch .next -- server/app.ts",
"build": "next build && tsc --project tsconfig.server.json",
"postinstall": "next build && rm -rf production-server/ && tsc --project tsconfig.server.json",
"prestart": "next build && rm -rf production-server/ && tsc --project tsconfig.server.json",
"start": "node production-server/server/app.js",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage --passWithNoTests",
Expand Down Expand Up @@ -40,7 +39,7 @@
"mobx": "5.14.0",
"mobx-react": "6.1.3",
"moment": "2.24.0",
"next": "9.1.1",
"next": "9.1.4",
"nprogress": "0.2.0",
"react": "16.10.2",
"react-dom": "16.10.2",
Expand Down
Loading

0 comments on commit 67e2fc3

Please sign in to comment.