Skip to content

wizarddevelopment/wizarddev-heroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wizarddev::Heroku

Deploys rails apps to heroku

Installation

Add this line to your application's Gemfile:

gem 'wizarddev-heroku'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wizarddev-heroku

Usage

From rake deploy

Deploys the currently checked out revision to Heroku.
Reads the project's app.json file to determine tasks for a target.
Tasks include:
   Tag the release and pushes it to github
   Deploy the release to Heroku
   Execute commands remotely eg 'rake db:migrate'
   Restart the app

Uses the ~/.netrc file for authentication per the Heroku toolbelt.

usage: rake deploy TARGET=target_name
usage: rake deploy:{staging|production}

Example app.json

This is very similar and compatible with Heroku's app.json.

{
  "name": "Our Cool App",
  "description": "Great app to use all the time.",
  "website": "https://www.ourcoolapp.com",
  "heroku-environments": {
    "staging": {
      "app-name": "ourcoolapp-staging",
      "tag-name": false,
      "force-push": true,
      "scripts": [
        { "cmd": "rake db:migrate", "restart": true }
      ]
    },
    "production": {
      "app-name": "ourcoolapp-production",
      "force-push": false,
      "tag-name": "prod",
      "scripts": [
        { "cmd": "rake db:migrate", "restart": true, "remote": true },
        { "cmd": "say 'deploy complete'"}
      ]
    }
  },
  "source-repo": "[email protected]:wizarddevelopment/ourcoolapp.git"
}

Contributing

  1. Fork it ( https://github.com/wizarddevelopment/wizarddev-heroku/fork )
  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 a new Pull Request

About

Deploys your app to heroku without making mistakes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages