add venv creation to script, add to readme and gitignore
This commit is contained in:
parent
94a8e2e12c
commit
c249bdcbd4
3 changed files with 10 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,6 +8,7 @@ __pycache__/
|
|||
# Distribution / packaging
|
||||
.Python
|
||||
env/
|
||||
venv/
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
|
|
|
@ -18,4 +18,4 @@ Local hosting steps
|
|||
7. Run `python haldis.py runserver`
|
||||
|
||||
---
|
||||
Or run `./localhost.sh` in the root of the git folder (in linux)
|
||||
Or run `./first-setup.sh` in the root of the git folder (in linux)
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
#!/bin/bash
|
||||
# A simple file to run all instructions from the README
|
||||
## this should be run in the root of the repository
|
||||
pip3 install -r requirements.txt
|
||||
|
||||
if [ ! -d "vent" ]; then
|
||||
python -m venv venv
|
||||
fi
|
||||
|
||||
venv/bin/pip install -r requirements.txt
|
||||
cd app
|
||||
cp config.example.py config.py
|
||||
cp -t . database/*
|
||||
python3 create_database.py
|
||||
venv/bin/python create_database.py
|
||||
rm -f add_* create_database.py
|
||||
python3 haldis.py runserver
|
||||
venv/bin/python haldis.py runserver
|
||||
cd ..
|
||||
|
|
Loading…
Reference in a new issue