15
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Capistranoのdeploy時にrake assets:precompileでerrorがでたら

Posted at

いつもどおりdeployしようとしたら、assets precompileの部分で落ちてしまいます。
deploy先にで実際にコマンドを試すと下記エラーが出ます。

Command failed with status (): [/home/nwsadmin/.rbenv/versions/2.0.0-p247/...]
/var/www/hogehoge/shared/bundle/ruby/2.0.0/gems/actionpack-3.2.13/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/var/www/hogehoge/shared/bundle/ruby/2.0.0/gems/actionpack-3.2.13/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/var/www/hogehoge/shared/bundle/ruby/2.0.0/gems/actionpack-3.2.13/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'

何でだろう何でだろうと悩んでいたら、下記のような記事を見つけました。

開発環境下でdevelopment向けにassets precompileすればcapistranoが通るというのもの

rake assets:precompile RAILS_ENV=development

本当かなぁと思ってやったら通った。。。なんで。。。

15
14
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?