Seamless Install

Make the Installation directory in project folder. Place the requirements.txt, seamless_install.sh, and sql_dump.sql files in Installation directory.

seamless_install.sh

# Install python
sudo apt-get install -y python

# Install virtualenv
sudo apt install -y virtualenv

# create virtualenv
virtualenv ~/env_Project_Name

# activate environment
source ~/env_Project_Name/bin/activate

# Install dependancies
pip install -r ~/Project_Name/Installation/requirements.txt

# Enter into project directory
cd ~/Project_Name/Project_Name

# runserver
python manage.py runserver

results matching ""

    No results matching ""