ruby - How do I precompile assets for a PhoneGap app deployed to Heroku using Guard and Rake? -
i deploy www/
of (phonegap) app heroku. prefer haml/sass/coffeescript created guardfile
automatically generate html/css/js , copy src/
www/
. added www/
.gitignore
. deploy heroku , have rake assets:precompile
generate 'slug'/www/
directory. added rakefile
according guard example
require 'guard' namespace :assets desc "precompile assets - build whole app" task :precompile guard.run_all end end
however when try run locally, run_all
fails.
c:\users\chloe\workspace\typefunctions>bundle exec rake assets:precompile rake aborted! nomethoderror: undefined method `run_all' guard:module c:/users/chloe/workspace/typefunctions/rakefile:6:in `block (2 levels) in <top (required)>' tasks: top => assets:precompile (see full trace running task --trace)
how can fix this? (or there better way?)
i had add
require 'guard/commander'
and
guard.setup
despite the wiki explicitly saying # can omit call guard.setup, guard.run_all call guard.setup under hood if guard has not been setuped yet
.
and seem need bundle exec...
.
Comments
Post a Comment