mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
Adding variable substitution for volume name
This commit is contained in:
1
.env.example
Normal file
1
.env.example
Normal file
@@ -0,0 +1 @@
|
|||||||
|
COMIC_BOOK_VOLUME
|
||||||
13
README.md
13
README.md
@@ -27,6 +27,18 @@ The CBWebReader is a Django project and follows the standard conventions for a D
|
|||||||
git clone https://github.com/ajurna/cbwebreader
|
git clone https://github.com/ajurna/cbwebreader
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Configure the environment using the `.env` file or setting each variable within your environment:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cp .env.example .env
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternatively, set the path to your `COMIC_BOOK_VOLUME` like so:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export COMIC_BOOK_VOLUME=some_path_to_comics_directory
|
||||||
|
```
|
||||||
|
|
||||||
Build and run the project using docker-compose:
|
Build and run the project using docker-compose:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -34,6 +46,7 @@ docker-compose build
|
|||||||
docker-compose up
|
docker-compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Running Tests
|
## Running Tests
|
||||||
|
|
||||||
To run the entire test suite for CBWebReader, execute the following command:
|
To run the entire test suite for CBWebReader, execute the following command:
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ services:
|
|||||||
- ./cbreader:/src/cbreader
|
- ./cbreader:/src/cbreader
|
||||||
- ./comic:/src/comic
|
- ./comic:/src/comic
|
||||||
- ./comic_auth:/src/comic_auth
|
- ./comic_auth:/src/comic_auth
|
||||||
- D:\Downloads\comics:/data
|
- ${COMIC_BOOK_VOLUME}:/data
|
||||||
command: python manage.py runserver 0.0.0.0:8000
|
command: python manage.py runserver 0.0.0.0:8000
|
||||||
|
|
||||||
database:
|
database:
|
||||||
@@ -30,8 +30,3 @@ services:
|
|||||||
- POSTGRES_USER=admin
|
- POSTGRES_USER=admin
|
||||||
- POSTGRES_PASSWORD=password
|
- POSTGRES_PASSWORD=password
|
||||||
- POSTGRES_DB=cbwebreader
|
- POSTGRES_DB=cbwebreader
|
||||||
|
|
||||||
# volumes:
|
|
||||||
# comic-volume:
|
|
||||||
# name: comic-volume
|
|
||||||
# external: true
|
|
||||||
Reference in New Issue
Block a user