“rake assets:precompile” gives punc error

前端 未结 10 718
离开以前
离开以前 2020-12-04 10:56

I\'m trying to precompile my assets for production, but rails doesn\'t seem to be cooperating.

$ bundle exec rake assets:precompile
/home/drderp/.rvm/rubies/         


        
10条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-04 11:37

    "/home/drderp/.rvm/rubies/ruby-1.9.3-p194/bin/ruby /home/drderp/.rvm/gems/ruby-1.9.3-p194@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets"

    There's a space between the bolded portion (between ruby, the backslash, and home).

    I don't know if this was a typo, but it could be your problem because Rails doesn't like spaces in directory names. Rename that folder, and try running your code again.

提交回复
热议问题