Ask A Question

Notifications

You’re not receiving notifications from this thread.

Rails App production(Droplet DigitalOcean) Assets Issue

SLLAF asked in Rails

Hi,
So i deployed my rails app on the digitalocean droplet, its using webpacker. So when i go to my site, css and js are not working while i get this in the console:
"rails_app/packs/css/application-988c2e01.css net::ERR_ABORTED 404"
"rails_app/packs/js/application-b5d6631ec473acfb5df1.js "
Now i know that the files are in "packs/" without the js and css folder in which its working fine locally.
Dnt understand why its looking in the wrong place on production.

Help

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 81,842+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2024 GoRails, LLC. All rights reserved.