fixed .env use

This commit is contained in:
kilyabin
2025-11-18 04:16:52 +04:00
parent 327f143a29
commit b5f902a13f
3 changed files with 24 additions and 10 deletions

View File

@@ -122,9 +122,14 @@ The installation script will:
1. Edit environment variables:
```bash
sudo nano /opt/kspguti-schedule/.env.production
sudo nano /opt/kspguti-schedule/.env
```
The installation script will:
- Copy `.env` file from source directory if it exists
- Preserve existing `.env` in installation directory if it already exists
- Create `.env` from `.env.production.example` if no `.env` file is found
2. Update systemd service if needed:
```bash
sudo nano /etc/systemd/system/kspguti-schedule.service
@@ -178,7 +183,7 @@ sudo journalctl -u kspguti-schedule -f
**Environment variables:**
See `.env.production.example` for available options:
See `.env.production.example` or `.example.env` for available options. The application uses `.env` file in production:
- `PROXY_URL` - URL for schedule parsing (optional)
- `PARSING_FAILURE_NOTIFICATIONS_TELEGRAM_BOTAPI_TOKEN` - Telegram bot token (optional)
- `PARSING_FAILURE_NOTIFICATIONS_TELEGRAM_CHAT_ID` - Telegram chat ID (optional)