Skip to content

Serving files on deployment server #5

Description

@yanlinaung30

Thanks for sharing the play & react integration source codes. I have a few problems on deployment in production mode. Could you consider how to solve the issue of my used case?

  • Back-end needs to download some images file from a server.
  • Front-end serves the files downloaded.
  • It works perfectly on development mode run by sbt run.
  • Deployment on production is done by sbt dist, unzip target/universal/xxxx.zip, cd xxx, ./bin/xxx Dplay.http.secret.key=lqkejrnjnjfajsdjfajhsdfhjasdf -Dconfig.file=/home/ubuntu/code/xxx/conf/application.conf -Dhttp.port=8080
  • Downloaded files are under xxx/public/images/
  • Front-end cannot serve the downloaded images file.
  • What I should need to change the config or controller to serve the file under xxx/public/images folder?
    Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions