Skip to content

Commit

Permalink
Add rake task to deploy example app
Browse files Browse the repository at this point in the history
  • Loading branch information
danbee committed Nov 5, 2015
1 parent ec8fa57 commit f9567b7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ end

require 'rdoc/task'

require File.expand_path('../spec/example_app/config/application', __FILE__)

RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Administrate'
Expand All @@ -16,8 +18,6 @@ end

Bundler::GemHelper.install_tasks

require File.expand_path('../spec/example_app/config/application', __FILE__)

Rails.application.load_tasks
task(:default).clear
task default: [:spec]
Expand All @@ -29,4 +29,11 @@ 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'
end
end

task default: "bundler:audit"

0 comments on commit f9567b7

Please sign in to comment.