Automate Nebula API Deployments #303
Labels
area:api
Related to Nebula's Public API
priority:low
Issues that are low priority don't need to be solved right away
type:Feature Request
Something that might be done in the future
Is your feature request related to a problem? Please describe.
Currently we release the nebula api by performing a complex
git subtree
operation to move the api source files to the root level, then delete the rest of the source files (since heroku requires the procfile on the root level). This leads to several manual changes that have to be made and turns what should be an easy process into a long, tedious one.Describe the solution you'd like
Ideally, we should have a single script that automatically prepares and deploys an update for the api project. This script should include the following steps:
Additionally, another pain point with heroku is making sure we have the correct setup to run the app. We recently switched to using yarn, instead of npm, so our deployment commands are different from development. This should be corrected.
Describe alternatives you've considered
There are several alternatives to what I'm proposing, but I haven't done much research into all of them yet. Will try to update this issue as I get more time for research:
git subtree
operation, but it might include needing to push the entire monorepo codebase, which is much bigger than just the api -- not a dealbreaker, but something to think about.Additional context
The script I'm proposing would be a simple bash script or powershell script that would run locally to perform the deployment. While it wouldn't be completely "automated," this would be considerably easier than our current workflow. This script could be the basis of a completely automated solution since it would handle all the necessary setup we need to deploy to heroku.
The text was updated successfully, but these errors were encountered: