mirror of
https://github.com/d0zingcat/ghost-docker.git
synced 2026-05-13 23:16:44 +00:00
Added check for interactive mode in tinybird-login service
This commit is contained in:
@@ -135,7 +135,7 @@ services:
|
|||||||
profiles: [analytics]
|
profiles: [analytics]
|
||||||
networks:
|
networks:
|
||||||
- ghost_network
|
- ghost_network
|
||||||
tty: true
|
tty: false
|
||||||
restart: no
|
restart: no
|
||||||
|
|
||||||
tinybird-sync:
|
tinybird-sync:
|
||||||
|
|||||||
@@ -19,5 +19,13 @@ then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if running in interactive environment
|
||||||
|
## If not logged in and running in non-interactive mode (i.e. `docker compose up -d`), the tinybird-login service will hang indefinitely
|
||||||
|
if [[ ! -t 0 ]] || [[ ! -t 1 ]]; then
|
||||||
|
echo "Not logged in to Tinybird and running in non-interactive mode."
|
||||||
|
echo "Please run 'docker compose run --rm tinybird-login' to login interactively."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Login to Tinybird
|
# Login to Tinybird
|
||||||
tb login --method code
|
tb login --method code
|
||||||
|
|||||||
Reference in New Issue
Block a user