Skip to content
Juanito Fatas edited this page Oct 23, 2019 · 19 revisions

ruby-lang.org leverages a two-head environment:

The staging environment runs on the same hardware (same bay!) as the production. It is deployed automatically by Heroku when commits are pushed to the master branch and tests are passing on Travis CI, so one never has to deploy on staging.

Deploying www.ruby-lang.org is achieved by any editorial team's member, simply by pushing to the remote repository on Heroku:

git push heroku  # makes it live!

Or promote staging to production by Heroku Pipelines with heroku CLI:

heroku pipelines:promote -r staging -t www-ruby-lang

You need to set staging remote:

git remote add staging https://git.heroku.com/staging-ruby-lang.git
Clone this wiki locally