Skip to content

Deploying your applications to Heroku should never involve manually chaining shell commands together

License

Notifications You must be signed in to change notification settings

espenhogbakk/heroku-deploy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Deploy

Code Climate

Deploying your applications to Heroku should never involve manually chaining shell commands together.

Supported Ruby versions: 1.9.3 or higher

Licensed under the MIT license, see LICENSE for more information.

Heroku Deploy

Installation

This is a Heroku client plugin and as such requires the Heroku Toolbelt to be installed.

heroku plugins:install https://github.com/hyperoslo/heroku-deploy.git

Usage

By default, the master branch will be deployed to your Heroku app:

heroku deploy

A different branch may be provided:

heroku deploy feature/plus-ux

If you have multiple apps, you may specify either app or remote:

heroku deploy -a hyper-rocks-staging
heroku deploy -r staging

Features

  • Supports multiple languages and frameworks using deploy packs (see below)
  • Streams output from subcommands
  • Relies on UNIX exit statuses to abort deployment early in case of failure

Deploy Packs

A deploy pack represents a set of deployment instructions for a given language or framework. These instructions could range from turning on maintenance mode, scaling processes to scheduling backups.

At present, only Ruby on Rails is supported. Deploying any other applications? Please open a pull request!

  • Maintenance mode on
  • Code deployment
  • Database migrations
  • Restart dynos
    • Ensures all processes have introspected any database schema afresh (possibly affected by migrations)
  • Maintenance mode off

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create pull request

Credits

Hyper made this. We're a digital communications agency with a passion for good code, and if you're using this plugin we probably want to hire you.

About

Deploying your applications to Heroku should never involve manually chaining shell commands together

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published