2022-11-08 15:24:58 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-02-13 21:48:38 +00:00
|
|
|
|
2022-11-08 15:24:58 +00:00
|
|
|
set -e
|
2019-08-02 12:56:16 +00:00
|
|
|
|
2022-11-08 15:24:58 +00:00
|
|
|
bash preinstall.sh
|
|
|
|
|
2022-11-08 19:10:14 +00:00
|
|
|
npm run start
|
2022-11-08 15:24:58 +00:00
|
|
|
|
|
|
|
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"
|