项目作者: fleetspace

项目描述 :
Mission Planning for Large Constellations
高级语言: Python
项目地址: git://github.com/fleetspace/missioncontrol.git
创建时间: 2019-01-15T05:48:38Z
项目社区:https://github.com/fleetspace/missioncontrol

开源协议:Apache License 2.0

下载


Code style: black

missioncontrol

Mission Control stores all of the state about satellites, grounstations, passes, telemetry, etc.

MissionControlDashboard

Configuration

A large part of this project was built using cookiecutter-django.
See here for some additional configuration options : http://cookiecutter-django.readthedocs.io/en/latest/settings.html

Getting started (development)

  1. Clone this repo

    git clone <missioncontrol repo>
    git submodule update --init

  1. Start the development server

    docker-compose -f local.yml up --build

    Optionally export the configuration filename so you
    don’t have to specify the config file every time:
    export COMPOSE_FILE=local.yml
    docker-compose up

  2. Migrate the database and create a user
    docker-compose -f local.yml run --rm django poetry run ./manage.py migrate
    docker-compose -f local.yml run --rm django poetry run ./manage.py createsuperuser

Deployment method (production)

  1. git pull
  2. git submodule update
  3. docker-compose -f production.yml up --build -d
  4. docker-compose -f production.yml run --rm django poetry run ./manage.py migrate

Initial deployment (production)

  • Set up environment files:

    1. # .envs/.production/.caddy
    2. DOMAIN_NAME=<hostname / ip>
    1. # .envs/.production/.django
    2. # General
    3. # ------------------------------------------------------------------------------
    4. DJANGO_SETTINGS_MODULE=config.settings.production
    5. DJANGO_SECRET_KEY=<keep this safe>
    6. DJANGO_JWT_SECRET=<keep this safe too>
    7. DJANGO_ADMIN_URL=<if you want something other than '/admin'>
    8. DJANGO_ALLOWED_HOSTS=<hostname / ip>
    9. # Security
    10. # ------------------------------------------------------------------------------
    11. # TIP: better off using DNS, however, redirect is OK too
    12. DJANGO_SECURE_SSL_REDIRECT=True
    13. # Gunicorn
    14. # ------------------------------------------------------------------------------
    15. WEB_CONCURRENCY=4
    1. # .envs/.production/.postgres
    2. # PostgreSQL
    3. # ------------------------------------------------------------------------------
    4. POSTGRES_HOST=postgres
    5. POSTGRES_PORT=5432
    6. POSTGRES_DB=missioncontrol
    7. POSTGRES_USER=<fill me in>
    8. POSTGRES_PASSWORD=<fill me in>
  • Create a superuser:

    1. docker-compose -f production.yml run --rm django poetry run ./manage.py createsuperuser
  • Follow the Deployment Method steps.