java - Why does Play Framework 2.3.8 Deployment not work? -
i have written program play framework 2.3.8 named quizsystem
. using memory database, controller, viewclasses etc.
now want run program on machine (windows 7 jdk 8u45 installed , path set jdk), therefore ran activator dist
on machine 1 , got .zip-file snapshot of program. copied zip file machine 2, extracted , used console go /bin folder. in there 2 files quizsystem
, quizsystem.bat
.
so typed quizsystem
error: oops, cannot start server ... database 'default' needs evolution
so tried this: quizsystem -dapplyevolutions=true
error: bad application path: -dapplyevolutions=true
so added line applyevolutions=true
application.conf
file.
but still, no matter command use can start program. have searched , tried many solutions here: play framework 2.1.1 deployment issues
why evolution / program not working?
found solution:
there seems (open?) bug in play framework @ moment: https://github.com/playframework/playframework/issues/3081
if understand correctly order of input parameters java wrong way around in play framework. thats reason manual input in console produces error...
so here complete list of steps in order produce working program deployment:
1) in directory type activator dist
console
2) zip file in /target/universal
directory (something contains word snapshot
or similar
3) on target machine need installed jdk, goto here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
4) extract zip-file, in /bin
-folder edit .bat file
5) search set "app_main_class=play.core.server.nettyserver"
, change
set "app_main_class= -dapplyevolutions.default=true play.core.server.nettyserver"
6) use console navigate folder , type name of program
i hope spares else several hours of frustration, despair
, lots of shouting , cursing :d
Comments
Post a Comment