Sky
1
I just finished deploying my ruby on rails app, but the logo for the app wasn’t being displayed.
This setup is what I use currently where it works in the local environment
<img src="../../Images/danceclass_logo.svg" alt="main-logo" width="125">
And the image file for the logo is stored in rails/public/images
Anyone can help me fix this?
rubys
2
First guess: the linux file system is case sensitive, and your URL specifies Images
, but the logo is stored in public/images
.
Sky
3
I have already tried using /public/images/danceclass_logo.svg
, but it still does not display the logo.
rubys
4
Try /images/danceclass_logo.svg
(without the /public
)
Sky
5
After changing the path to /images/danceclass_logo.svg
(without the /public
), it still does not display the logo image of the app.
rubys
6
Can you verify that your fly.tom contains:
[[statics]]
guest_path = "/rails/public"
url_prefix = "/"
Note: the above is strictly not necessary, but if present will serve the image without the request ever getting to Rails.
And can you provide the output of the following command:
fly ssh console -C "ls /rails/public/images"
system
Closed
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.