DEV Community

Greg Nokes for Heroku

Posted on • Originally published at greg.nokes.name on

How I post an article

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.

Getting Started

The second step is to create a local branch for the article:

Local Branch

The third step is to push the branch to Github and create a pull request:

Push To Github Open Pr

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.

Pr Opened Review App Created

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.

Merge PR

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.

Building Staging

Once I am happy with the article, I can promote it into production.

Promote To 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)