-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create new production environment #324
Labels
Comments
Closed
@jessykate @jonathan-s Filled out everything in the checklist I could think of off the top of my head. Can you think of anything else? |
@bfirsh Can't really think of anything else. |
Closed
12 tasks
Laughing out loud! This made my morning. Wish I was there :)
On Thu 7. Mar 2019 at 03:40, Ben Firshman ***@***.***> wrote:
@jonathan-s <https://github.com/jonathan-s>
[image: untitled]
<https://user-images.githubusercontent.com/40906/53928322-8a108800-403e-11e9-966f-1a7fbc65286d.jpg>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#324 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACBsEpRUYGZ5wR8E73yhU0uiOqefC_meks5vUHrggaJpZM4ZT_c9>
.
--
Sent from Gmail Mobile
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Deploy a new production environment, probably on Heroku.
Blockers
Pre-migration tasks
heroku run -a embassynetwork-staging ./manage.py generateimages
...
sections belowheroku pg:backups:schedule -a embassynetwork-production DATABASE_URL --at '02:00 America/Los_Angeles'
Distribute and store Tarsnap key to at least two peoplemoved to Post Production Migration Tasks #483s3cmd sync --region us-east-1 -rv webapp/media/* s3://media.embassynetwork.com/public/
heroku run -a embassynetwork-production ./manage.py generateimages
heroku config:set -a embassynetwork-production MEDIA_URL=https://media.embassynetwork.com/public/
2FA all the thingsmoved to Post Production Migration Tasks #483Migration steps
PGPASSWORD=XXXX pg_dump -Fc --no-acl --no-owner -h localhost -U postgres modernomadb > modernomadb.dump
scp
db dump to local machine and then upload to S3aws s3 cp modernomadb.dump s3://jessykate-scratch
heroku pg:backups:restore -a embassynetwork-production <s3 signed url> DATABASE_URL
heroku run -a embassynetwork-production ./manage.py migrate
s3cmd sync --region us-east-1 -rv webapp/media/* s3://media.embassynetwork.com/public/
heroku run -a embassynetwork-production ./manage.py generateimages
embassynetwork.com
andwww.embassynetwork.com
on Cloudflare to CNAMEembassynetwork-production.herokuapp.com
, and switch on Cloudflare./manage.py run_daily_tasks
heroku config:set -a embassynetwork-production ALLOWED_HOSTS=embassynetwork.com
The text was updated successfully, but these errors were encountered: