mirror of
https://lavaforge.org/spotizerr/spotizerr.git
synced 2025-12-24 02:39:14 -05:00
add global log info and how to run in dev mode
This commit is contained in:
23
README.md
23
README.md
@@ -211,7 +211,7 @@ Access logs via Docker:
|
|||||||
docker logs spotizerr
|
docker logs spotizerr
|
||||||
```
|
```
|
||||||
|
|
||||||
**Log Locations:**
|
**Log and File Locations:**
|
||||||
- Application Logs: `docker logs spotizerr` (main app and Celery workers)
|
- Application Logs: `docker logs spotizerr` (main app and Celery workers)
|
||||||
- Individual Task Logs: `./logs/tasks/` (inside container, maps to your volume)
|
- Individual Task Logs: `./logs/tasks/` (inside container, maps to your volume)
|
||||||
- Credentials: `./data/creds/`
|
- Credentials: `./data/creds/`
|
||||||
@@ -221,6 +221,12 @@ docker logs spotizerr
|
|||||||
- Download History Database: `./data/history/`
|
- Download History Database: `./data/history/`
|
||||||
- Spotify Token Cache: `./.cache/` (if `SPOTIPY_CACHE_PATH` is mapped)
|
- Spotify Token Cache: `./.cache/` (if `SPOTIPY_CACHE_PATH` is mapped)
|
||||||
|
|
||||||
|
**Global Logging Level:**
|
||||||
|
The application's global logging level can be controlled via the `LOG_LEVEL` environment variable.
|
||||||
|
Supported values (case-insensitive): `CRITICAL`, `ERROR`, `WARNING`, `INFO`, `DEBUG`, `NOTSET`.
|
||||||
|
If not set, the default logging level is `WARNING`.
|
||||||
|
Example in `.env` file: `LOG_LEVEL=DEBUG`
|
||||||
|
|
||||||
## 🤝 Contributing
|
## 🤝 Contributing
|
||||||
|
|
||||||
1. Fork the repository
|
1. Fork the repository
|
||||||
@@ -228,6 +234,21 @@ docker logs spotizerr
|
|||||||
3. Make your changes
|
3. Make your changes
|
||||||
4. Submit a pull request
|
4. Submit a pull request
|
||||||
|
|
||||||
|
Here is the text to add to your `README.md` file, preferably after the "Quick Start" section:
|
||||||
|
|
||||||
|
## 💻 Development Setup
|
||||||
|
|
||||||
|
To run Spotizerr in development mode:
|
||||||
|
|
||||||
|
1. **Backend (API):**
|
||||||
|
* Ensure Python dependencies are installed (e.g., using `uv pip install -r requirements.txt`).
|
||||||
|
* Start a Redis server.
|
||||||
|
* Run the app insidie your activated virtual env: `python3 app.py`
|
||||||
|
2. **Frontend (UI):**
|
||||||
|
* Navigate to `spotizerr-ui/`.
|
||||||
|
* Install dependencies: `pnpm install`.
|
||||||
|
* Start the development server: `pnpm dev`.
|
||||||
|
|
||||||
## 📄 License
|
## 📄 License
|
||||||
|
|
||||||
This project is licensed under the GPL yada yada, see [LICENSE](LICENSE) file for details.
|
This project is licensed under the GPL yada yada, see [LICENSE](LICENSE) file for details.
|
||||||
|
|||||||
Reference in New Issue
Block a user