Reputation: 3849
I have some strange problems when I deploy application build with Play framework 2.0. It looks like deployment didn't clean/overwrite compiled files. This I know because one method is changed but still the old is somehow called...
My deployment steps:
../play stop
../play clean compile stage
./start -Dhttp.port=80 &
I need some "best practices" advices ;)
Upvotes: 1
Views: 745
Reputation: 55798
Some tips:
play clean-all
instead play clean
.dist
command for building independent production versions, with some bash scripts
+ git hooks
+ load balancer
you'll be able to switch versions without stopping the application. Anyway remember to move and unzip created file outside the /dist
directory, as it is cleaned every time when you call play dist
command.Upvotes: 3