add some nice formatting
This commit is contained in:
parent
4fe2634668
commit
07895c5e87
1 changed files with 13 additions and 6 deletions
|
@ -2,24 +2,31 @@
|
||||||
# A simple file to run all instructions from the README
|
# A simple file to run all instructions from the README
|
||||||
## this should be run in the root of the repository
|
## this should be run in the root of the repository
|
||||||
|
|
||||||
|
bold=$(tput bold)
|
||||||
|
normal=$(tput sgr0)
|
||||||
|
|
||||||
|
B="\n${bold}"
|
||||||
|
E="${normal}"
|
||||||
|
|
||||||
if [ ! -d "venv" ]; then
|
if [ ! -d "venv" ]; then
|
||||||
echo "No venv found, creating a new one"
|
echo -e "${B} No venv found, creating a new one ${E}"
|
||||||
python -m venv venv
|
python -m venv venv
|
||||||
fi
|
fi
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
||||||
echo "Installing pip-tools"
|
|
||||||
|
echo -e "${B} Installing pip-tools ${E}"
|
||||||
pip install pip-tools
|
pip install pip-tools
|
||||||
|
|
||||||
echo "Downloading dependencies"
|
echo -e "${B} Downloading dependencies ${E}"
|
||||||
pip-sync
|
pip-sync
|
||||||
|
|
||||||
echo "Copying config template. All custom config options can be set in the config.py file"
|
echo -e "${B} Copying config template. All custom config options can be set in the config.py file ${E}"
|
||||||
cd app
|
cd app
|
||||||
cp config.example.py config.py
|
cp config.example.py config.py
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "Seeding database"
|
echo -e "${B} Seeding database ${E}"
|
||||||
./populate-db.sh
|
./populate-db.sh
|
||||||
|
|
||||||
echo "You can now run the server with 'python app/haldis.py runserver'"
|
echo -e "${B} Activate your venv using 'source venv/bin/activate'.\nThen run the server with 'python app/haldis.py runserver' ${E}"
|
||||||
|
|
Loading…
Reference in a new issue