Reputation: 13
I am using Heroku to serve my static web application. We've linked it with our github repository.
We are at a point in developing our application that we want to release it to our clients, however, we would like to continue developing it in the background. Does anyone have any suggestions on how we can release a version to our clients, yet still be able to use our git repo to collaborate within the team.
Upvotes: 1
Views: 126
Reputation: 137182
Keep your existing Heroku app as your development instance and spin up a new Heroku app for production. Forking your first app is probably the easiest way to do this, but I would recommend looking into Heroku pipelines:
A pipeline is a group of Heroku apps that share the same codebase. Apps in a pipeline are grouped into "review", "development", "staging", and "production" stages
Don't be intimidated by everything on that page; basic pipeline use is actually quite simple:
git push
to your development instance, as usualheroku pipelines:promote
You don't have to have apps in every stage. For example, you can have a simple development-to-production pipeline. Pipeline promotions copy the compiled slug from one stage to the next, so they are very fast and you are guaranteed to get exactly the same code.
Upvotes: 1