Logo image of web app made with ruby on rails, not being detected

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?

First guess: the linux file system is case sensitive, and your URL specifies Images, but the logo is stored in public/images.

I have already tried using /public/images/danceclass_logo.svg, but it still does not display the logo.

Try /images/danceclass_logo.svg (without the /public)

After changing the path to /images/danceclass_logo.svg (without the /public ), it still does not display the logo image of the app.

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"

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.