Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 999 Bytes

DEPLOYMENT.md

File metadata and controls

54 lines (38 loc) · 999 Bytes

Deployment

Currently 2 stages exist production and staging. We use capistrano to deploy servers.

Install Capistrano

# 1. install ruby (my recommendation is https://rvm.io)
$ gem install --user bundler
$ bundle install

How to deploy a new version to staging

TODO: automatic pull from master on commit

How to deploy a new version to production

# Merge master into stable, run tests
$ cap production release:prepare
# Push release and switch back to master
$ cap production release:push
# Deploy new code from stable
$ cap production deploy

Further things

  • To reset stable branch to offenesdresden/stable (abort release)
$ cap production release:reset
  • Nothing works after deploy? Don't freak out use to step back
$ cap production deploy:rollback
  • Download/upload configuration
$ cap production config:download
$ cap production config:upload
  • Follow server logs
$ cap production log:tail