diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..083b8c0 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +# Lokal einmal 'claude setup-token' ausführen und Token hier eintragen. +# Datei nach .env kopieren (wird nicht committet). +CLAUDE_CODE_OAUTH_TOKEN= diff --git a/.gitignore b/.gitignore index 4b58f01..385c284 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ frontend/dist/ __pycache__/ *.pyc .claude-data/ +.env diff --git a/Makefile b/Makefile index d5f499e..336f407 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,10 @@ COMPOSE = docker compose auth: @mkdir -p .claude-data storage projects - @cp -aT /root/.claude .claude-data @chown -R 1000:1000 .claude-data storage projects - @echo "Claude-Auth nach .claude-data synct, storage/projects chowned auf uid 1000." + @grep -q "^CLAUDE_CODE_OAUTH_TOKEN=.\+" .env 2>/dev/null \ + || echo "WARNUNG: CLAUDE_CODE_OAUTH_TOKEN fehlt in .env. Lokal 'claude setup-token' ausführen und Token eintragen." + @echo "Verzeichnisse angelegt und auf uid 1000 chowned." install: sudo apt install -y poppler-utils libpango-1.0-0 libcairo2 libgdk-pixbuf-2.0-0 libffi-dev diff --git a/docker-compose.yml b/docker-compose.yml index 3465b75..c997959 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,8 @@ services: context: . container_name: guides restart: unless-stopped + environment: + - CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN:-} networks: - web volumes: