diff --git a/init.sh b/init.sh index acbbf4e..bb91371 100755 --- a/init.sh +++ b/init.sh @@ -36,7 +36,8 @@ get_license_key() { } get_host() { - read -p "What public host name or public IP address are you using for this setup (e.g. localhost, app.quadratic.com, or other): " user_input + # read -p "What public host name or public IP address are you using for this setup (e.g. localhost, app.quadratic.com, or other): " user_input + read -p "What public host name or public IP address are you using for this setup (e.g. company.com, quadratic.company.com, or other): " user_input # TODO: validate host echo $user_input diff --git a/start.sh b/start.sh index 9d4cd0f..384d52a 100755 --- a/start.sh +++ b/start.sh @@ -3,10 +3,15 @@ # read the value of PROFILE from the file PROFILE=$(cat PROFILE) +# read the value of HOST from the file +HOST=$(cat HOST) + start() { docker compose $PROFILE down yes | docker compose rm quadratic-client docker compose $PROFILE up -d } -start \ No newline at end of file +start + +echo "Quadratic client started on https://$HOST" \ No newline at end of file