Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- pip_version=$(pip --version)
- python_version=$(python --version)
- echo "********* Performing health checks *****************"
- echo "$pip_version"
- echo "$python_version"
- [[ "$(python3 -V)" =~ "Python 3" ]] && echo "Python 3 is installed"
- echo "Initialising systems.."
- echo "Installing PIP"
- apt install pip -y
- echo 'Done. Installing Venv'
- apt install python3-venv -y
- echo 'Done.. Cloning repository...'
- git clone https://github.com/Apophus/client_book.git
- WORKING_DIR=$(pwd)
- # shellcheck disable=SC2005
- echo "$(WORKING_DIR)"
- cd client_book
- pip install -r requirements.txt
- python manage.py makemigrations
- python manage.py migrate
- python manage.py collectstatic
- python manage.py runserver
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement