Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku Deployments #59

Open
tamagokun opened this issue Aug 6, 2014 · 0 comments
Open

Heroku Deployments #59

tamagokun opened this issue Aug 6, 2014 · 0 comments
Labels

Comments

@tamagokun
Copy link
Owner

Cataloging notes and ideas about being able to manage deployments to Heroku via Pomander.

This should be a straightforward process as Heroku takes care of nearly everything for us. Pomander just really needs to run the key deploy tasks with empty commands so that before/after hooks can be triggered, and anything special can be taken care of.

Notes:

Example Capistrano task for deploying to Heroku:

namespace :deploy do
  desc 'Deploy the app'
  task :production do
    app = "my-amazing-heroku-app-name"
    remote = "git@heroku.com:#{app}.git"

    system "heroku maintenance:on --app #{app}"
    system "git push #{remote} master"
    system "heroku run rake db:migrate --app #{app}"
    system "heroku maintenance:off --app #{app}"
  end
end

Using a Composer plugin to trigger pom heroku

Just rely on heroku run: heroku run vendor/bin/pom heroku

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant