Add a test and make changez?
This commit is contained in:
parent
2a9ade77d8
commit
9e19ae6cf6
5 changed files with 133 additions and 11 deletions
37
README.md
37
README.md
|
@ -66,6 +66,8 @@ A podcast management application similar to Sonarr but for podcasts, built with
|
|||
|
||||
## Usage
|
||||
|
||||
### Local Development
|
||||
|
||||
Run the application:
|
||||
```
|
||||
python main.py
|
||||
|
@ -73,6 +75,41 @@ python main.py
|
|||
|
||||
Then open your browser and navigate to `http://localhost:5000`.
|
||||
|
||||
### Docker Deployment
|
||||
|
||||
The application can be deployed using Docker in two ways:
|
||||
|
||||
#### Option 1: Using the published Docker image from Forgejo registry (recommended for production)
|
||||
|
||||
1. Create a `.env` file with the following variables:
|
||||
```
|
||||
FORGEJO_REGISTRY=your-forgejo-registry-url
|
||||
FORGEJO_USERNAME=your-username
|
||||
PORT=5000
|
||||
FLASK_ENV=production
|
||||
SECRET_KEY=your_secret_key
|
||||
DATABASE_URI=sqlite:///instance/podcastrr.db
|
||||
DOWNLOAD_PATH=/app/downloads
|
||||
```
|
||||
|
||||
2. Run the application using docker-compose:
|
||||
```
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
#### Option 2: Building from local Dockerfile (for development)
|
||||
|
||||
1. Modify the `docker-compose.yml` file to use the local build instead of the published image:
|
||||
- Comment out the `image:` line
|
||||
- Uncomment the `build:` section
|
||||
|
||||
2. Run the application using docker-compose:
|
||||
```
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
The application will be available at `http://localhost:5000` (or the port you specified in the `.env` file).
|
||||
|
||||
## Development
|
||||
|
||||
1. Install development dependencies:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue