If I run the command play reload what boolean does it return if the application is not running?
If I do a deploy shell script that looks like:
play reload || nohup play start
will it start Play! if the instance wasn’t running? Or will it fail regardless?
To start off I had a misconception about the
play reloadcommand. It is in fact a part of the sbt tool and not the Play! application itself.play reloadreturns as zero, and like Dennis Williamson pointed out it means success.What I was actually referring to was
play stagewhich readies the application for production in cases like an autodeployment.Now my final deployment script looks like this:
Notice my handy shortcut to applying evolutions?
I’ve confirmed this works just as well and I ended up not using the
play stage.