Skip to content

assets not working in production mode #11392

Answered by Squeng
vazand asked this question in Q&A
Discussion options

You must be logged in to vote

I depends on how you build/deploy/run your app. (For example, I use sbt stage: https://github.com/Squoss/Squawg/blob/main/Dockerfile)

For example, in DEV the /public/images as explained in https://www.playframework.com/documentation/2.8.x/Anatomy is the only instance. In PRODUCTION there might be several in your case, one below /public because you still upload to there and one below /target. I would look into that if you haven't done so already.

And as a general rule, I would use a third-party storage for user uploads if that's possible in your case, https://www.clever-cloud.com/cellar-s3-hosting/ for instance.

I hope this helps!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vazand
Comment options

@Squeng
Comment options

Answer selected by vazand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants