summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorLogan Hunt <logan.hunt@usu.edu>2023-01-31 17:40:50 -0700
committerLogan Hunt <logan.hunt@usu.edu>2023-01-31 17:40:50 -0700
commitce5f598331b2be3be08cf697a59e8629cc69fe07 (patch)
treeecba4f474348a437282635b8d265057edf79ea92 /buildscripts
parent58eb3df0f4c74d84cc96ec8b5c748b7d1add4727 (diff)
downloadchessh-ce5f598331b2be3be08cf697a59e8629cc69fe07.tar.gz
chessh-ce5f598331b2be3be08cf697a59e8629cc69fe07.zip
Fix front pwd and epmd
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