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

Deploy to production #53

Open
6 of 7 tasks
ramonaspence opened this issue May 25, 2022 · 2 comments
Open
6 of 7 tasks

Deploy to production #53

ramonaspence opened this issue May 25, 2022 · 2 comments
Assignees

Comments

@ramonaspence
Copy link
Owner

ramonaspence commented May 25, 2022

In order to deploy this project to production, I'll work my way through this task list.

  • Create new branch development
  • Rename master branch, main
  • Set Debug = False in conf/settings.py
  • Edit environment variables for production
  • Write basic test suite for API
  • Decide what will be the "production" branch
  • Write documentation to follow for each deployment of the production branch, main

I will be updating this task list to add items that I've missed.

@ramonaspence ramonaspence self-assigned this May 25, 2022
@ramonaspence
Copy link
Owner Author

ramonaspence commented Aug 19, 2022

I have this in production on Heroku now. I want to decide whether (1) I use the Main branch for production, and make the Development branch the default OR (2) create a new "production" branch, and continue pushing changes to the Main branch.

The latter would mean reconfiguring Heroku slightly, while the former requires completely reconfiguring the branches (ie. make development default, protect main branch, edit documentation for pushing to development branch).

Right now there aren't many changes that have to be made in order to push to Production so I am leaning towards the second option because of that.

A helpful stack exchange question & answer

@ramonaspence
Copy link
Owner Author

Alright, I've decided that I'm going to use the main branch as the "development" branch. So developers will create a topic/feature branch to make changes in, and then create a pull request to merge those changes into the main branch. Once it's reviewed by me or a future organizer, it'll be merged into main.

When it's time to deploy a new version to production, the main branch will be merged into the production branch, where settings and environment variables will be edited for deployment. All tests should then be run and any failed tests should be addressed. Once all tests are passing, it will be necessary to build the react app with production environment variables (ie. npm run build).

Then the production branch can be pushed to Github and deployed to Heroku.

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

1 participant