Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 824 Bytes

SETUP.md

File metadata and controls

33 lines (24 loc) · 824 Bytes
./venv/Scripts/activate
cd logistics_platform
python manage.py runserver

Redis

  • Check for the Redis Access Control in the render.com, for the access in the production when deployment.
  • render is restrcited to only 50 connections

Install PostGres and POSTGIS Extension

  • link
  • Setup the Database
            sudo -u postgres psql
            CREATE DATABASE logistics_db;
    
            psql -d postgis_db
            CREATE EXTENSION postgis;
  • The above will setup the postgis extension in the logistics_db.

Run the application using daphne

    daphne -u /tmp/daphne.sock -p 8001 logistics_platform.asgi:application
    # for celery
    celery -A logistics_platform worker --loglevel=info