update readme to explain how to use .env file
This commit is contained in:
		
							
								
								
									
										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
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,6 @@
 | 
			
		||||
DELETE FROM os_images WHERE id = 'openbsd67';
 | 
			
		||||
 | 
			
		||||
ALTER TABLE os_images 
 | 
			
		||||
DROP COLUMN deprecated;
 | 
			
		||||
DROP COLUMN deprecated;
 | 
			
		||||
 | 
			
		||||
UPDATE schemaversion SET version = 2;
 | 
			
		||||
		Reference in New Issue
	
	Block a user