Skip to content

Commit

Permalink
Merge pull request #397 from Whist-Team/fix/deploy-script
Browse files Browse the repository at this point in the history
FIX: deploy script
  • Loading branch information
iTitus authored Nov 24, 2022
2 parents e76c342 + 0549169 commit fca2941
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ systemctl start mongod
echo "Mongo server started"

echo "Enter host address for whist server (127.0.0.1):"
read host_addr
if [ -z "$host_addr"]
read -r host_addr
if [ -z "$host_addr" ]
then
host_addr=127.0.0.1
fi

echo "Enter host port for whist server (8000):"
read host_port
if [ -z "$host_port"]
read -r host_port
if [ -z "$host_port" ]
then
host_port=8000
fi

echo "Enter administrator's username (admin):"
read admin_name
if [ -z "$admin_name"]
read -r admin_name
if [ -z "$admin_name" ]
then
admin_name="admin"
fi

echo "Enter administrator's password (admin):"
read admin_pwd
if [ -z "$admin_pwd"]
read -r admin_pwd
if [ -z "$admin_pwd" ]
then
admin_pwd="admin"
fi

python -m whist_server $host_addr $host_port --admin_name $admin_name --admin_pwd $admin_pwd &

exit 0
exit 0

0 comments on commit fca2941

Please sign in to comment.