简体   繁体   中英

bundle exec rake assets:precompile issue with the generated application.js file

I could successfully host the fulcrum app on phusion but I am going nuts with some configuration issue

The application is picking up the url as

http://example.com/projects/4

instead of

http://example.com/fulcrum/projects/4

Could anyone point the mistake. I tried to change the assets.prefix in production.rb and recompile the assets but it only changes the location of the assets but doesn't change the root url in application.js

THe app is hosted at

http://example.com/fulcrum 

And the rest of the site is functional except for this jquery/ajax part.

Setting config.action_controller.asset_host = "http://example.com/fulcrum" in your production.rb should do the trick.

If you're sending emails you should set config.action_mailer.asset_host too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM