Oh yes in fact I’m pretty sure that’s exactly the tutorial I’ve been following. After adding turbo streams, I did rails db:migrate, and fly-deploy. I then tried adding the image I described above. Then I got the errors.
I do have a Dockerfile in the root of my project as per the tutorial.
Hi! Try to add this to your dockerfile before precompiling assets
RUN yarn build
RUN yarn build:css
# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
RUN SECRET_KEY_BASE=DUMMY ./bin/rails assets:precompile
Ok yes @matiasleandronunez I do not have good access to that project now, but if I remember correctly my root problem was failure to use the Rails image_tag correctly… maybe inclusion of (or failure to include) the file extension, something dumb like that.
Thanks for the answers @tomb & @Alexey, however that didn’t seem to solve the issue in my case.
I have the default Dockerfile from the sample project that has the line RUN SECRET_KEY_BASE=DUMMY ./bin/rails assets:precompile
but upon fly deploy I don’t see anything but the 404.html, 502.html etc in /public/assets when I ssh