From 19d652c42d9c14612d6968bb39c727b62be1856c Mon Sep 17 00:00:00 2001 From: Marwolf Date: Sun, 15 Jul 2018 20:01:30 -0400 Subject: [PATCH] Simplifying launch for production server --- Run_Production_Linux_Game_Server.sh | 5 +++++ ant_launcher.sh | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Run_Production_Linux_Game_Server.sh create mode 100644 ant_launcher.sh diff --git a/Run_Production_Linux_Game_Server.sh b/Run_Production_Linux_Game_Server.sh new file mode 100644 index 0000000..56b2253 --- /dev/null +++ b/Run_Production_Linux_Game_Server.sh @@ -0,0 +1,5 @@ +#!/bin/bash +echo "Launching in a new window. Type 'screen -r' to view the live server screen." +echo "Use CTRL + A + D to detach the live server screen." +echo "" +screen -dmS name ./ant_launcher.sh diff --git a/ant_launcher.sh b/ant_launcher.sh new file mode 100644 index 0000000..f38172d --- /dev/null +++ b/ant_launcher.sh @@ -0,0 +1,17 @@ +#!/bin/bash +echo "Pulling recent updates from the Open-RSC Game repo" +sudo make pull +echo "" +echo "" + +#Compile +echo "Compiling the game server" +echo "" +echo "" +sudo Ant/bin/ant -f Game/server/build.xml compile + +#Run game server +echo "Launching the game server" +echo "" +echo "" +Ant/bin/ant -f Game/server/build.xml runserver