fix(v5): defer production runtime activation

Remove Flux token provisioning and container role handling from production.
Restore private server IP support and document the activation checklist.
This commit is contained in:
Andras Bacsai committed 2026-07-19 16:47:29 +02:00
1 parent d0247d3b09
commit 32f9b48406
16 files changed
+138 -126

No files matched your search

@@ -2,14 +2,6 @@
cd /var/www/html
. /etc/s6-overlay/scripts/container-role
role="$(coolify_container_role_value)"
if ! coolify_container_has_role worker && ! coolify_container_has_role horizon; then
echo " INFO Horizon is disabled for role '$role', sleeping."
exec sleep infinity
fi
if grep -qE '^HORIZON_ENABLED=false' .env 2>/dev/null; then
echo " INFO Horizon is disabled, sleeping."
exec sleep infinity
@@ -2,14 +2,6 @@
cd /var/www/html
. /etc/s6-overlay/scripts/container-role
role="$(coolify_container_role_value)"
if ! coolify_container_has_role worker && ! coolify_container_has_role nightwatch && ! coolify_container_has_role nightwatch-agent; then
echo " INFO Nightwatch is disabled for role '$role', sleeping."
exec sleep infinity
fi
if grep -qE '^NIGHTWATCH_ENABLED=true' .env 2>/dev/null; then
echo " INFO Nightwatch is enabled, starting..."
exec php artisan nightwatch:agent
@@ -2,14 +2,6 @@
cd /var/www/html
. /etc/s6-overlay/scripts/container-role
role="$(coolify_container_role_value)"
if ! coolify_container_has_role worker && ! coolify_container_has_role scheduler && ! coolify_container_has_role scheduler-worker; then
echo " INFO Scheduler worker is disabled for role '$role', sleeping."
exec sleep infinity
fi
if grep -qE '^SCHEDULER_ENABLED=false' .env 2>/dev/null; then
echo " INFO Scheduler is disabled, sleeping."
exec sleep infinity
@@ -1,26 +0,0 @@
#!/bin/sh
coolify_container_role_value() {
role="${COOLIFY_CONTAINER_ROLE:-}"
if [ -z "$role" ]; then
role="$(grep -E '^COOLIFY_CONTAINER_ROLE=' .env 2>/dev/null | tail -n1 | cut -d= -f2- | tr -d '"' | tr -d "'")"
fi
printf '%s\n' "${role:-all}"
}
coolify_container_has_role() {
wanted_role="$1"
roles="$(coolify_container_role_value | tr '[:upper:]' '[:lower:]' | tr ',' ' ')"
for role in $roles; do
case "$role" in
all|"$wanted_role")
return 0
;;
esac
done
return 1
}