django-orchestra/INSTALLDEV.md
2021-01-30 15:17:03 +01:00

1.2 KiB

Development and Testing Setup

If you are planing to do some development you may want to consider doing it under the following setup

  1. Install Docker

    curl https://get.docker.com/ | sh
    
  2. Build a new image, create and start a container

    curl -L https://raw.githubusercontent.com/ribaguifi/django-orchestra/master/scripts/containers/Dockerfile > /tmp/Dockerfile
    docker build -t orchestra /tmp/
    docker create --name orchestra -i -t -u orchestra -w /home/orchestra orchestra bash
    docker start orchestra
    docker attach orchestra
    
  3. Deploy django-orchestra development environment, inside the container

    bash <( curl -L https://raw.githubusercontent.com/ribaguifi/django-orchestra/master/scripts/containers/deploy.sh ) --dev
    
  4. Nginx should be serving on port 80, but Django's development server can be used as well:

    cd panel
    python3 manage.py migrate
    python3 manage.py runserver 0.0.0.0:8888
    
  5. To upgrade to current master just re-run the deploy script

    git pull origin master
    bash <( curl -L https://raw.githubusercontent.com/ribaguifi/django-orchestra/master/scripts/containers/deploy.sh ) --dev