mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-12 01:36:26 -04:00
Merge pull request #18 from pozorvlak/heroku2
Stop `rake assets:precompile` from dying, hopefully
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user