Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add static asset paths and run.py for production
- Loading branch information
Showing
6 changed files
with
29 additions
and
30 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,15 +1,14 @@ | ||
{ | ||
"app": { | ||
"js": "/app.js" | ||
}, | ||
"style": { | ||
"js": "/style.js", | ||
"css": "/style.css" | ||
}, | ||
"vendor": { | ||
"js": "/vendor.js" | ||
}, | ||
"manifest": { | ||
"js": "/manifest.js" | ||
} | ||
"manifest": { | ||
"js": "/js/manifest.js" | ||
}, | ||
"vendor": { | ||
"js": "/js/vendor.js" | ||
}, | ||
"app": { | ||
"js": "/js/app.js" | ||
}, | ||
"style": { | ||
"css": "/style/style.css" | ||
} | ||
} |
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 @@ | ||
#!/usr/bin/env python | ||
import os | ||
|
||
from app import create_app | ||
|
||
env = os.environ.get('app_ENV', 'prod') | ||
app = create_app('app.settings.%sConfig' % env.capitalize(), env=env) | ||
|
||
if __name__ == '__main__': | ||
app.run() |
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,5 +1,5 @@ | ||
[uwsgi] | ||
module = uwsgi | ||
module = run | ||
callable = app | ||
master = true | ||
processes = 10 | ||
|
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