mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
35 lines
1.4 KiB
Bash
Executable File
35 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
bash preinstall.sh
|
|
|
|
# Pull latest changes
|
|
git pull
|
|
|
|
docker compose pull
|
|
|
|
# echo "Checking if async migrations are up to date"
|
|
# sudo -E docker compose run init
|
|
|
|
npm run start
|
|
|
|
echo "We will need to wait ~5-10 minutes for things to settle down, migrations to finish, and TLS certs to be issued"
|
|
echo ""
|
|
echo "⏳ Waiting for OneUptime to boot (this will take a few minutes)"
|
|
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost/api/status)" != "200" ]]; do sleep 5; done'
|
|
echo "Progress 1/5"
|
|
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost/dashboard/status)" != "200" ]]; do sleep 5; done'
|
|
echo "Progress 2/5"
|
|
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost/status)" != "200" ]]; do sleep 5; done'
|
|
echo "Progress 3/5"
|
|
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost/staus-page/status)" != "200" ]]; do sleep 5; done'
|
|
echo "Progress 4/5"
|
|
echo "⌛️ OneUptime is up!"
|
|
echo ""
|
|
echo "🎉🎉🎉 Done! 🎉🎉🎉"
|
|
|
|
echo "We would like to hear your feedback to make this product better for you and for other users, please email us at hello@oneuptime.com."
|
|
echo " - If you notice a bug, we will fix it for you."
|
|
echo " - If you need a feature, we will add that to the roadmap and let you know the estimated time to ship."
|
|
echo "We would love to hear your feedback. Email: hello@oneuptime.com" |