mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-08 01:39:46 -06:00
* docs: hatchet-lite setup guide * chore: docs lint * fix: add line * fix: hatchet-lite init * fix: auto-gen env file for guides * fix: volume path * fix: imports
32 lines
617 B
Bash
32 lines
617 B
Bash
#!/bin/bash
|
|
|
|
rabbitmq-server &
|
|
|
|
# Wait up to 60 seconds for RabbitMQ to be ready
|
|
echo "Waiting for RabbitMQ to be ready..."
|
|
|
|
timeout 60s bash -c '
|
|
until rabbitmqctl status; do
|
|
sleep 2
|
|
echo "Waiting for RabbitMQ to start..."
|
|
done
|
|
'
|
|
|
|
if [ $? -eq 124 ]; then
|
|
echo "Timed out waiting for the database to be ready"
|
|
exit 1
|
|
fi
|
|
|
|
# Run migration script
|
|
./atlas-apply.sh
|
|
if [ $? -ne 0 ]; then
|
|
echo "Migration script failed. Exiting..."
|
|
exit 1
|
|
fi
|
|
|
|
# Generate config files
|
|
./hatchet-admin quickstart --skip certs --generated-config-dir ./config --overwrite=false
|
|
|
|
# Run the Go binary
|
|
./hatchet-lite --config ./config
|