Merge pull request #18 from pozorvlak/heroku2

Stop `rake assets:precompile` from dying, hopefully
This commit is contained in:
Skud
2012-09-24 13:09:54 -07:00
3 changed files with 18 additions and 10 deletions

View File

@@ -58,5 +58,8 @@ module Growstuff
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
# Don't try to connect to the database when precompiling assets
config.assets.initialize_on_precompile = false
end
end

View File

@@ -1,12 +1,14 @@
require 'rake'
require 'rspec/core/rake_task'
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
task :default => :spec
task :run_tests do
system("rspec spec/")
system("rake test")
task :run_tests do
system("rspec spec/")
system("rake test")
end
rescue LoadError
end

View File

@@ -1,4 +1,7 @@
desc "Run watchr"
task :watchr do
sh %{bundle exec watchr .watchr}
begin
desc "Run watchr"
task :watchr do
sh %{bundle exec watchr .watchr}
end
rescue LoadError
end