Advertisement
Larrisa

pyhton_setup

Mar 18th, 2023
780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.71 KB | None | 0 0
  1. #!/bin/bash
  2. pip_version=$(pip --version)
  3. python_version=$(python --version)
  4. echo "********* Performing health checks *****************"
  5. echo "$pip_version"
  6. echo "$python_version"
  7. [[ "$(python3 -V)" =~ "Python 3" ]] && echo "Python 3 is installed"
  8.  
  9. echo "Initialising systems.."
  10. echo "Installing PIP"
  11. apt install pip -y
  12. echo 'Done. Installing Venv'
  13. apt install python3-venv -y
  14. echo 'Done.. Cloning repository...'
  15. git clone https://github.com/Apophus/client_book.git
  16. WORKING_DIR=$(pwd)
  17. # shellcheck disable=SC2005
  18. echo "$(WORKING_DIR)"
  19.  
  20. cd client_book
  21. pip install -r requirements.txt
  22.  
  23. python manage.py makemigrations
  24. python manage.py migrate
  25. python manage.py collectstatic
  26. python manage.py runserver
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement