I deployed a Rails app successfully, however, the images are not displaying. This is an error that’s showing in the console
GET http://mydomain.com/assets/myimage.png 404 (Not Found)
First of all, this is noteworthy because on my local machine, images are located in an images folder within the assets directory, so I was surprised to see them in the assets directory (without an images folder) on the production server. However, that may be because Rails compiles everything. Anyways, I tried to put the images directly in the assets directory on my local machine, and then push those to github and re-deploy but I’ve got the same problem, so I don’t think it’s about the directory they’re in but rather that the images aren’t getting written to the server.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.