Skip to content
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

ci: deployment #2

Closed
4 of 8 tasks
seabo opened this issue Oct 14, 2022 · 0 comments
Closed
4 of 8 tasks

ci: deployment #2

seabo opened this issue Oct 14, 2022 · 0 comments
Assignees

Comments

@seabo
Copy link
Contributor

seabo commented Oct 14, 2022

We need to get this bad boy deployed.

My thinking is to run a single EC2 instance, because we won't initially have enough traffic to warrant a bunch of machines. That instance will have three programs running:

  • API server
  • Web server
  • Postgres instance, connected to EBS

Checklist:

  • In order to run both API and Nodejs endpoints (for the server-rendered website), I think we need to use nginx to direct traffic to the correct ports
  • We should put everything inside a Docker container
  • We want to set up automatic deployment when we push to main branch
  • ci: staging #117
  • We only want to deploy when Github Actions gives us a clean bill of health across all tests and stuff
  • We need to think about TLS certificates (see here)
  • ci: zero downtime #118
    1. Have a load balancer in front of your app
    2. On deploy, fire up a new container with the latest version of the app, before taking down the old one
    3. Verify the new one is up and running
    4. Transition traffic from old to new with the load balancer
    5. Take down the old one
    6. DB migrations become even trickier than they already are, and you have to think them through at the application code level, not just deployment
  • ci: EBS snapshots #119
@seabo seabo self-assigned this Oct 14, 2022
@EdAyers EdAyers added this to the v0 milestone Oct 24, 2022
@seabo seabo changed the title CI: update Netlify and Render to pull from monorepo ci: deployment Nov 13, 2022
@EdAyers EdAyers closed this as completed Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants