'rake assets: precompile' giving me errors in development and production
Whenever I try to deploy my app with cap production deploy:migrations I
get an error message along the lines:
* executing "ln -nfs
/var/www/apps/myapp/releases/20130802221024/config/configs/resque_schedule.yml
/var/www/apps/myapp/releases/20130802221024/config/resque_schedule.yml"
servers: ["12.34.567.8"]
[12.34.567.8] executing command
command finished in 550ms
triggering after callbacks for `deploy:update_code'
* executing `deploy:assets:precompile'
* executing "cd /var/www/apps/myapp/releases/20130802221024 && bundle
exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
servers: ["12.34.567.8"]
[12.34.567.8] executing command
** [out :: 12.34.567.8] rake aborted!
** [out :: 12.34.567.8] Received wrong number of arguments. [nil]
** [out :: 12.34.567.8]
/var/www/apps/myapp/shared/bundle/ruby/1.8/gems/omniauth-1.1.0/lib/omniauth/strategy.rb:136:in
`initialize'
** [out :: 12.34.567.8]
/var/www/apps/myapp/shared/bundle/ruby/1.8/gems/actionpack-3.2.3/lib/action_dispatch/middleware/stack.rb:43:in
`new'
** [out :: 12.34.567.8]
/var/www/apps/myapp/shared/bundle/ruby/1.8/gems/actionpack-3.2.3/lib/action_dispatch/middleware/stack.rb:43:in
`build'
I had been believed there was some configuration issue with my server, or
some missing dependency files. But on my local Ubuntu when I run in
terminal:
bundle exec rake assets:precompile --trace
I get:
mycompaq@ubuntu:~/myapp_back_ups/myapp-first version August 2012/myapp_v1$
bundle exec rake assets:precompile --trace
DEPRECATION WARNING: require "activerecord" is deprecated and will be
removed in Rails 3. Use require "active_record" instead. (called from
/usr/lib/ruby/vendor_ruby/activerecord.rb:2)
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/usr/bin/ruby1.8 /usr/local/bin/rake assets:precompile:all
RAILS_ENV=production RAILS_GROUPS=assets --trace
DEPRECATION WARNING: require "activerecord" is deprecated and will be
removed in Rails 3. Use require "active_record" instead. (called from
/usr/lib/ruby/vendor_ruby/activerecord.rb:2)
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
rake aborted!
Received wrong number of arguments. [nil]
/var/lib/gems/1.8/gems/omniauth-1.1.0/lib/omniauth/strategy.rb:136:in
`initialize'
/var/lib/gems/1.8/gems/actionpack-3.2.3/lib/action_dispatch/middleware/stack.rb:43:in
`new'
/var/lib/gems/1.8/gems/actionpack-3.2.3/lib/action_dispatch/middleware/stack.rb:43:in
`build'
/var/lib/gems/1.8/gems/actionpack-3.2.3/lib/action_dispatch/middleware/stack.rb:113:in
`build'
etc...etc...
which is pretty much the same bunch of error messages.
Whats more, I have the same problem with all the back ups of my app - even
though I haven't touched any of the code. I'd obviously conclude that
something has changed in my core var/lib/gems folder, but there's nothing
I've changed in there either.
Can anyone solve my problem, let me know where to start looking, or even
tell me what's happening? Thanks.
No comments:
Post a Comment