-
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.
* Adds missing modules to production image * Adds OV_DEBUG flag * Adds more production env vars * Adds manage.py to docker image * Try deploy with pwd /app * Binds prod server to 8000 * Adds s3 media access to production settings * Fixes s3 custom domain * Adds s3 url signatures * Try with QUERYSTRING_AUTH * Removes OV_ from AWS_ vars * Actually removes OV_ from AWS_ vars * Try without custom domain * Adds frontend config to docker compose
- Loading branch information
Showing
8 changed files
with
135 additions
and
122 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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ version: '3.8' | |
services: | ||
wagtail: | ||
ports: | ||
- 8000:80 | ||
- 8000:8000 | ||
depends_on: | ||
- db | ||
environment: | ||
|
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
#!/bin/bash | ||
|
||
cd /app/ | ||
# Build static files for the admin site | ||
python3 manage.py collectstatic --noinput | ||
|
||
# Run the production server | ||
gunicorn ov_wag.wsgi:application \ | ||
--reload \ | ||
--access-logfile /logs/access.log \ | ||
--error-logfile /logs/error.log | ||
-b 0.0.0.0:8000 \ | ||
--workers 2 \ | ||
--forwarded-allow-ips '*' \ | ||
--access-logfile - \ | ||
--error-logfile - | ||
# --access-logfile /logs/access.log \ | ||
# --error-logfile /logs/error.log |
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