forked from 3wordchant/capsul-flask
update readme to explain how to use .env file
This commit is contained in:
parent
4b9d56f610
commit
b30f86f7d0
13
README.md
13
README.md
@ -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
|
||||
```
|
||||
|
||||
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
|
||||
@ -43,7 +49,8 @@ Run the app
|
||||
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
|
||||
```
|
||||
|
@ -2,3 +2,5 @@ DELETE FROM os_images WHERE id = 'openbsd67';
|
||||
|
||||
ALTER TABLE os_images
|
||||
DROP COLUMN deprecated;
|
||||
|
||||
UPDATE schemaversion SET version = 2;
|
Loading…
Reference in New Issue
Block a user