Note the logo at the top of the page and the favicon. Those are configured w/in the app.
However, when I redeploy my app they’re lost. I think this is because they are saved to some public storage folder and the link is saved to the database. But that database is shared between DEV and PROD so the DEV location for the file isn’t relevant to the PROD location.
How do people handle this? Store the image as a binary in the database?
Thanks for the response. Should I expect files uploaded to Dev and stored in a Public folder to also be available in Prod at the same relative address?
I’m running into a similar issue and it’s super frustrating.
Just trying to get a basic website working so I can test the platform. It looks great in preview. When I go to deploy it, the images don’t work and I get an error message ‘the image cannot be displayed because it contains errors’.
I am sure I could resolve it if I could just copy the images between dev and production, but don’t seem to be able to do that.
The agent has tried dozens of times and doesn’t seem to have any idea what the issue is.
dev → prod takes a container snapshot and runs the same commands to get it running so that should work. You have to hit redeploy any time you make a change in dev to reflect it in prod.
Can you put some screenshots of the image issue you’re talking about? I’ve never encountered that before, if they’re just files they should be served correctly if they work in dev
it looks like you’re doing a static deployment but you have a client/server app so youre not running the server on deployment, you have to do either an autoscale or a reserved vm deployment