26 lines
587 B
Bash
Executable file
26 lines
587 B
Bash
Executable file
#!/bin/bash
|
|
# A simple file to run all instructions from the README
|
|
## this should be run in the root of the repository
|
|
|
|
if [ ! -d "venv" ]; then
|
|
echo "No venv found, creating a new one"
|
|
python -m venv venv
|
|
fi
|
|
source venv/bin/activate
|
|
|
|
echo "Installing pip-tools"
|
|
pip install pip-tools
|
|
|
|
echo "Downloading dependencies"
|
|
pip-sync
|
|
|
|
echo "Copying config template. All custom config options can be set in the config.py file"
|
|
cd app
|
|
cp config.example.py config.py
|
|
cd ..
|
|
|
|
echo "Seeding database"
|
|
./populate-db.sh
|
|
|
|
echo "You can now run the server with 'python app/haldis.py runserver'"
|