Skip to content

Commit

Permalink
update deploy instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmvfb committed Mar 6, 2024
1 parent 4dea778 commit 0888bbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-slim
FROM python:3.9-slim
ENV PYTHONUNBUFFERED 1
WORKDIR /app

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ $ make dev
Run `deactivate` to exit virtual environment.

**Docker:**
To run in dev mode, create a .env file with 1 variable: `DEBUG=True`. Then run:
```
docker compose build
docker compose run web python3 manage.py migrate
docker compose up
```
To use a custom PostgreSQL database, django secret key, and API for audio generation, you can also create a .env file and specify the environment variables below before running the first command.
To use a custom PostgreSQL database, django secret key, and API for audio generation, you can also specify the environment variables below in the .env file.

## Environment variables
Add following variables to the .env file:
Expand Down
2 changes: 1 addition & 1 deletion english_exercises_app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
SECRET_KEY = os.getenv('SECRET_KEY', '6353juantabo')

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = bool(os.getenv('DEBUG'))
DEBUG = True
print(DEBUG, type(DEBUG))

ALLOWED_HOSTS = [
Expand Down

0 comments on commit 0888bbd

Please sign in to comment.