Jumpup-deis
Rake tasks to deploy any Rails application to Deis using Jumpup.
Instalation
Add to your gem file.
gem 'jumpup-deis'
Without groups on Gemfile as this gem makes use of an initializer.
Usage
- Create the initializer on
config/initializers/jumpup-deis.rb
# config/initializers/jumpup-deis.rb
Jumpup::Deis.configure do |config|
config.host = 'deis.mycompany.com'
config.app = 'myapp'
end if Rails.env.development?
- Add to the tasks on jumpup.rake the tasks to deploy to Deis:
# lib/tasks/jumpup.rake
INTEGRATION_TASKS = %w(
jumpup:deis:start
jumpup:start
jumpup:bundle_install
db:migrate
spec
jumpup:finish
jumpup:deis:finish
)
Production and staging apps
Have production and staging app? Do like this:
Jumpup::Deis.configure do |config|
config.host = 'deis.mycompany.com'
config.staging_app = 'myapp-staging'
config.production_app = 'myapp'
end if Rails.env.development?
The branch send to staging app is master
and the branch send to production is the production
.
Deploy to production
When I have a single app
Run rake jumpup:deis:deploy:production
or as an alias rake integrate:production
When I have staging and production apps
We have the following config
Branch | App Environment |
---|---|
master | staging |
production | production |
So to send to production we need to
$ git checkout production
$ git merge master
$ git push -u origin production
And send to Deis with rake jumpup:deis:deploy:production
or as an alias rake integrate:production
Versioning
Jumpup-deis follow the Semantic Versioning.
Issues
If you have problems, please create a Github Issue.
Contributing
Please see CONTRIBUTING.md for details.
Maintainers
Release
Follow this steps to release a new version of the gem.
- Test if everything is running ok;
- Change version of the gem on
VERSION
constant; - Add the release date on the
CHANGELOG
; - Do a commit "Bump version x.x.x", follow the semantic version;
- Run
$ rake release
, this will send the gem to the rubygems; - Check if the gem is on the rubygems and the tags are correct on the github;
Credits
Jumpup-deis is maintained and funded by HE:labs. Thank you to all the contributors.
License
Jumpup-deis is Copyright © 2014 HE:labs. It is free software, and may be redistributed under the terms specified in the LICENSE file.
Made with love by HE:labs
This gem was created and is maintained by HE:labs.