update readme to explain how to use .env file

This commit is contained in:
forest 2020-05-21 19:39:06 -05:00
parent 4b9d56f610
commit b30f86f7d0
2 changed files with 13 additions and 4 deletions

View File

@ -31,10 +31,16 @@ Run an instance of Postgres (I used docker for this, you can use whatever you wa
docker run --rm -it -e POSTGRES_PASSWORD=dev -p 5432:5432 postgres docker run --rm -it -e POSTGRES_PASSWORD=dev -p 5432:5432 postgres
``` ```
Modify the default email settings Create a `.env` file to set up the application configuration:
``` ```
nano capsulflask/__init__.py nano .env
```
Enter your SMTP credentials like this:
```
MAIL_USERNAME=forest@nullhex.com
MAIL_PASSWORD=**************
``` ```
Run the app Run the app
@ -43,7 +49,8 @@ Run the app
pipenv run flask run pipenv run flask run
``` ```
Run the app in gunicorn Run the app in gunicorn:
``` ```
pipenv run gunicorn --bind 127.0.0.1:5000 app:app pipenv run gunicorn --bind 127.0.0.1:5000 app:app
``` ```

View File

@ -1,4 +1,6 @@
DELETE FROM os_images WHERE id = 'openbsd67'; DELETE FROM os_images WHERE id = 'openbsd67';
ALTER TABLE os_images ALTER TABLE os_images
DROP COLUMN deprecated; DROP COLUMN deprecated;
UPDATE schemaversion SET version = 2;