forked from Decentrala/taskmanager
		
	Merge pull request 'Changed to relative path and updated the documentation' (#6) from fix/relative-path-and-docs into master
Reviewed-on: Decentrala/taskmanager#6
This commit is contained in:
		
							
								
								
									
										11
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								README.md
									
									
									
									
									
								
							@@ -10,12 +10,21 @@ Install python and pip on local machine
 | 
			
		||||
pip install virtualenv
 | 
			
		||||
python -m venv venv #/path/to/new/virtual/environment
 | 
			
		||||
source venv/bin/activate #activate virtual env
 | 
			
		||||
pip install -r requirements.txt
 | 
			
		||||
pip install -r requirments.txt
 | 
			
		||||
python3 ./init_db.py #initialize database
 | 
			
		||||
 | 
			
		||||
python3 ./run.py #run project
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
# On database changes
 | 
			
		||||
 | 
			
		||||
Delete file `/instance/taskmanager.db`
 | 
			
		||||
And reinit the db
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
python3 ./init_db.py  
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
# Build app
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
 
 | 
			
		||||
@@ -1,10 +1,14 @@
 | 
			
		||||
import configparser
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
from flask import render_template, request, redirect
 | 
			
		||||
 | 
			
		||||
from taskmanager import app, db
 | 
			
		||||
from taskmanager.functions import *
 | 
			
		||||
from taskmanager.models import *
 | 
			
		||||
import configparser
 | 
			
		||||
 | 
			
		||||
CONFIG_PATH = "/var/taskmanager/taskmanager/config.ini"
 | 
			
		||||
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
 | 
			
		||||
CONFIG_PATH = os.path.join(PROJECT_PATH, "config.ini")
 | 
			
		||||
 | 
			
		||||
config = configparser.ConfigParser()
 | 
			
		||||
config.read(CONFIG_PATH)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user