I also am including the git-deploy configuration to update and restart the service from a devleopment machine
-
play2.service
The SystemD script Place in /etc/systemd/system/
-
after_push
The after push configuration file goes in /deploy
-
before_restart
The before restart file goes in /deploy
-
restart
The restart file goes in /deploy
This still requires sbt to be installed on the remote server. I am looking at how to just build everything locally before I push