18 lines
504 B
Bash
Executable File
18 lines
504 B
Bash
Executable File
#!/bin/bash
|
|
# Start webhook receiver for test.coppertone.tech
|
|
# Listens for pushes to develop branch
|
|
|
|
pkill -f webhook-receiver 2>/dev/null || true
|
|
sleep 1
|
|
|
|
export TARGET_BRANCH=develop
|
|
export WEBHOOK_PORT=9110
|
|
export DEPLOY_SCRIPT=/docker/web-hosts/domains/test.coppertone.tech/deploy.sh
|
|
|
|
cd /docker/web-hosts/domains/test.coppertone.tech/webhook
|
|
nohup ./webhook-receiver > /tmp/webhook.log 2>&1 &
|
|
|
|
sleep 2
|
|
echo "Webhook started. Checking health..."
|
|
curl -s http://127.0.0.1:9110/health && echo " - OK"
|