Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add url after start and remove localhost support #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
start

echo "Quadratic client started on https://$HOST"