Play Framework 2.3.7: Static assets location not working in production

泄露秘密 提交于 2019-12-05 05:28:54
user1625233

I have got a solution to my own problem, not sure if this is the correct way or not but that way that worked for me.

  • pipelineStages := Seq(rjs, digest, gzip) - Removed rjs as its no longer required in the new Play
  • the way to package the play framework was changed recently with the playframework upgrades, you now use the sbt packager to do it. in this case its 'sbt docker:stage'
  • the docker.aws.json file is required to map the exposed port to the aws beanstalk external port
  • a permission line needs to be added the docker file to allow the beanstalk deployment script access to the directory
  • there is a bug in the sbt packager that linked to windows in that the command line has a character limit thats getting hit. Thats why I cant run a local production mode using activator. This bug is still outstanding so I cant run it locally in proudction mode
  • the docker file is now generated in the sbt package process so I added the docker ports to the sbt.build file. I need to find a command to add to the sbt.build which will do the permission line in the docker file so that we can use the jenkins script to automate the process

Few sites I found that really helped me:

Hope that helps someone!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!