mirror of
https://github.com/d0zingcat/ghost-docker.git
synced 2026-05-13 15:09:34 +00:00
Added check for interactive mode in tinybird-login service
This commit is contained in:
@@ -135,7 +135,7 @@ services:
|
||||
profiles: [analytics]
|
||||
networks:
|
||||
- ghost_network
|
||||
tty: true
|
||||
tty: false
|
||||
restart: no
|
||||
|
||||
tinybird-sync:
|
||||
|
||||
@@ -19,5 +19,13 @@ then
|
||||
exit 0
|
||||
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
|
||||
tb login --method code
|
||||
|
||||
Reference in New Issue
Block a user