Skip to content

Commit

Permalink
Distinguish between hosts in deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
HSZemi committed Aug 18, 2021
1 parent 7e5cf46 commit d585fe6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
#! /bin/bash
set -e

npm run build && cp -r build/images ~/html/ && cp -r build/static ~/html/ && supervisorctl restart aoe2cm2
npm run build

if [ $HOSTNAME = "maury.uberspace.de" ]
then
cp -r build/images ~/cm/
cp -r build/static ~/cm/
elif [ $HOSTNAME = "shoemaker.uberspace.de" ]
then
cp -r build/images ~/html/
cp -r build/static ~/html/
else
echo "Unknown hostname. Skipping deployment of static files."
fi

supervisorctl restart aoe2cm2

0 comments on commit d585fe6

Please sign in to comment.