Best deployment strategy for PlayFramework applications?

后端 未结 3 1449
南方客
南方客 2020-12-24 07:53

This question is server oriented. I have a hosted server (a rather small one, 1,6Ghz atom, 2Go, 200 GO) with a couple (4 or 5) play apps and more coming. Most of these apps

3条回答
  •  Happy的楠姐
    2020-12-24 08:33

    The production deployments i'm running are using the Play embedded server. It makes life way simpler than Tomcat, especially redeploying - I run the servers under screen, and an upgrade consists of "Ctrl-C", "Up-Arrow", "Enter", executing:

    % git stash; git pull; git stash apply; play run
    

    With 2G of memory, I wouldn't worry too much about the per-process overhead. It's certainly a price worth paying to get rid of Tomcat's complexities.

    (the git stashing allows me to have some non-git-committed configs lying around on production - more laziness than need, though :-))

提交回复
热议问题