summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/build/build_server.sh5
-rwxr-xr-xbuildscripts/docker/build.sh3
2 files changed, 4 insertions, 4 deletions
diff --git a/buildscripts/build/build_server.sh b/buildscripts/build/build_server.sh
index 0870c79..80e6e91 100755
--- a/buildscripts/build/build_server.sh
+++ b/buildscripts/build/build_server.sh
@@ -36,5 +36,6 @@ sudo docker build . -t chessh/server
cd $HOME
sudo mv chessh.service /etc/systemd/system/chessh.service
sudo systemctl daemon-reload
-sudo systemctl enable --now chessh
-sudo systemctl restart chessh
+sudo systemctl enable chessh
+sudo systemctl stop chessh
+sudo systemctl start chessh
diff --git a/buildscripts/docker/build.sh b/buildscripts/docker/build.sh
index 9852f20..a33be21 100755
--- a/buildscripts/docker/build.sh
+++ b/buildscripts/docker/build.sh
@@ -6,9 +6,8 @@ export $(cat $env_file | xargs)
docker build ../.. -t chessh/server
-cd front
docker build \
--build-arg REACT_APP_DISCORD_OAUTH=${REACT_APP_DISCORD_OAUTH} \
--build-arg REACT_APP_SSH_SERVER=${REACT_APP_SSH_SERVER} \
--build-arg REACT_APP_SSH_PORT=${REACT_APP_SSH_PORT} \
- . -t chessh/frontend
+ ../../front -t chessh/frontend