-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes all kinds of stuff for deployment
from latests changes to changes 7 hours ago, everything that I did to configure the deployment on heroku: - gunicorn and eventlet version mismatch - eventlet in procfile needed for flask socketio - makes client use io URL according to dev/prod build process - flask cors allow all - defining all npm modules as dependencies, so that heroku will install them in a build process - adds build to postinstall - readds gunicorn web server - resetting pip requirements - adds serverside routing to single page app - adds gunicorn to requirements.txt - refines static.json and adds heroku CORS (maybe static.json is not needed after all) - changes root package.json - specifies node version - adds heroku build config for webpack - adds pip requirements
- Loading branch information
Showing
9 changed files
with
66 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
__pycache__ | ||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web: gunicorn --chdir server server:app | ||
web: gunicorn --chdir server -k eventlet -w 1 server:app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "escapeling-lobby", | ||
"version": "0.1.0", | ||
"scripts": { | ||
"postinstall": "npm install --prefix client && npm run build --prefix client" | ||
}, | ||
"engines": { | ||
"node": "14.17.6" | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"root": "client/dist/", | ||
"clean_urls": true, | ||
"error_page": "404", | ||
"routes": { | ||
"/fonts/*": "/fonts/", | ||
"/images/*": "/images/", | ||
"/*.js": "/", | ||
"/styles/*.css": "/styles/", | ||
"/**": "index.html" | ||
} | ||
} |