lrem / ladders

Track games in custom ranked ladders
MIT License
1 stars 0 forks source link

Deployment configuration #10

Closed lrem closed 7 years ago

lrem commented 7 years ago

Currently, everything is in a hard-coded debug mode. We need to turn that off for production and prepare tooling to make deployment a no-brainer.

lrem commented 7 years ago

General idea:

  1. On success, Travis pushes to a separate prod copy of the repository (Travis remains read-only for Github).
  2. Prod repository has a pre-receive hook configured to only accept commits also present in Github.
  3. Prod has a post-receive hook to build production files for the frontend, push everything to serving locations, where nginx picks them up, and restart the api via supervisor.
lrem commented 7 years ago

The last build deployed cleanly, without any manual intervention.