changed to run with gunicorn in docker

This commit is contained in:
Jan Felix Wiebe 2025-06-13 23:09:16 +02:00
parent 3210343537
commit 17cd6ae30f
3 changed files with 10 additions and 3 deletions

View file

@ -9,6 +9,7 @@ A Flask-based server implementation of the [SpaceAPI](https://spaceapi.io/) spec
- Docker support for easy deployment
- Real-time space status updates
- Configurable space information (name, location, contact details, etc.)
- Production-ready with Gunicorn WSGI server
## Prerequisites
@ -76,8 +77,13 @@ curl -X POST http://localhost:5000/state \
3. Set up environment variables and run the server:
```bash
# For development (using Flask's development server)
export SPACEAPI_TOKEN=your-token-here
flask run
# For production-like environment (using Gunicorn)
export SPACEAPI_TOKEN=your-token-here
gunicorn --bind 0.0.0.0:5000 --workers 4 app:app
```
## License