I think that the workflow I have developed for this blog is pretty interesting, so I decided to write up how I currently approach it.
The first step is to write an outline. I currently use Textmate 2, but I am thinking about trying out Visual Studio, as a few friends have been gushing about it. On my iPad I will use Working Copy.
The second step is to create a local branch for the article:
The third step is to push the branch to Github and create a pull request:
Since I have a pipeline set up on Heroku with review apps enabled, once the PR is opened on Github you will notice that Heroku automatically creates an app tied to that PR.
I can hand out review app to folks that I want to get feedback from. Also, as I revise the app and push those changes to my PR, those changes automatically appear in the review app.
Once I am done with the article, I can push it into staging. I do this by simply merging the PR into my master branch. Once the PR is merged or deleted, the review app is disposed of.
If the PR is merged into the master branch, my staging app detects the new code, and automatically deploys it. If I had unit tests written, I could hook up Heroku CI to automagically run my tests previous to the deploy.
Once I am happy with the article, I can promote it into production.
What is super nice about this workflow is when I want to do larger changes (for example, swapping out the theme) I can do that with out a fear of breaking the running app. When I used to host on Wordpress, I would often be making larger changes live on my site, with exciting results.
You can read about how to create a pipeline on Herokuโs Devcenter.
Top comments (0)