gwillen / herring

Modern Django and ReactJS based web application for puzzlehunt team management!
MIT License
7 stars 4 forks source link

Promote staging to production #21

Closed gwillen closed 3 years ago

gwillen commented 3 years ago

First:

Zahariel commented 3 years ago

Those all seem like good ideas. DB migrations will definitely need to be run before the server will usefully start up, yes.

You can neuter staging by setting ACTIVATE_DISCORD=0 (and maybe ACTIVATE_GAPPS=0 too but that's less critical).

gwillen commented 3 years ago

@Zahariel Do you expect the db migrations to be safe and effective, when run against prod? It should be in the same state as staging was when you first started operating on it. I recall we had some discussions about the autogenerated migrations not being quite correct in some cases.

Zahariel commented 3 years ago

I fixed the code to be ready for whatever missing values might be left behind by the migrations, so it should be fine. All the existing users are admins, so they'll be able to set up their user profile stuff themselves; I've tested that works.

gwillen commented 3 years ago

This is done.