Skip to content

Commit

Permalink
Deploy tasks match bin/setup
Browse files Browse the repository at this point in the history
Match the deploy tasks with the Heroku remotes that are added in
`bin/setup`.
  • Loading branch information
danbee committed Nov 5, 2015
1 parent f9567b7 commit 390f49e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,15 @@ if defined? RSpec
end
end

desc "Deploy the example app to Heroku"
namespace :deploy do
task :example do
exec 'git push heroku `git subtree split --prefix spec/example_app`:master --force'
desc "Deploy the example app to Heroku staging"
task :staging do
exec %(git push staging `git subtree split --prefix spec/example_app`:master --force)
end

desc "Deploy the example app to Heroku production"
task :production do
exec %(git push production `git subtree split --prefix spec/example_app`:master --force)
end
end

Expand Down

0 comments on commit 390f49e

Please sign in to comment.