echo 'export _JAVA_OPTIONS="-Xms128m -Xmx256m -XX:PermSize=64m"' >> ~/.bashrc
echo "export PATH=$PATH:/path/to/dir" >> ~/.bashrc
bash
When in activator, just add a space after start or run and specify the port. Example:
run 80
or
start 80
- Create a distributable from activator (command: "dist")
- Push to server
- Create a .sh file and dump this in:
nohup bin/executable -J-server -Dconfig.file=conf/application.conf -Dhttp.port=80 &
- chmod +x start.sh (or the filename you chose above)
- ./start.sh
- Server should be running.