You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-29Lines changed: 8 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -110,36 +110,15 @@ We use [Black](https://github.com/psf/black) to format our code. You can install
110
110
111
111
### Deployment instructions
112
112
113
-
Deployment is to dokku, a Heroku-like environment. To deploy, simply push to the git remote:
114
-
115
-
git push dokku
116
-
117
-
Sensitive or environment-specific configuration variables are set as environment variables using `dokku config:set`, the important ones are:
118
-
119
-
* SERVER_NAME - Flask uses this as the base hostname and port for the server - Flask Blueprint subdomains base from this. If it can't match the Host header in requests to this, it serves a 404 response.
120
-
-`pmg.org.za` in production
121
-
-`pmg.test:5000` in development
122
-
- Flask seems to use this for generating absolute URLs, except when the `X-Forwarded-Host` header is provided, in which case that hostname is used for absolute URLs.
123
-
* SESSION_COOKIE_DOMAIN
124
-
-`pmg.org.za` in production
125
-
-`pmg.test` in dev
126
-
* SQLALCHEMY_DATABASE_URI
127
-
* FLASK_ENV=production
128
-
* AWS_ACCESS_KEY_ID
129
-
* AWS_SECRET_ACCESS_KEY
130
-
* SENDGRID_API_KEY
131
-
* MAIL_PASSWORD
132
-
* SECURITY_PASSWORD_SALT
133
-
* RUN_PERIODIC_TASKS=true
134
-
* SOUNDCLOUD_APP_KEY_ID
135
-
* SOUNDCLOUD_APP_KEY_SECRET
136
-
* SOUNDCLOUD_USERNAME
137
-
* SOUNDCLOUD_PASSWORD
138
-
* SOUNDCLOUD_PERIOD_HOURS=6
139
-
* MAX_SOUNDCLOUD_BATCH=10
140
-
* S3_BUCKET=pmg-assets
141
-
* STATIC_HOST=https://static.pmg.org.za/ or http://pmg-assets.s3-website-eu-west-1.amazonaws.com/
113
+
Deployment is to dokku, a Heroku-like environment. PMG now runs on two servers with an AWS Application Load Balancer.
0 commit comments