Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • W wtstatus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Software Defined Radio
  • wtstatus
  • Merge requests
  • !6

Merged
Created Nov 25, 2018 by markus@markusOwner

Refactor app running to support config file/env vars

  • Overview 0
  • Commits 3
  • Changes 6

This adds support for configuring the application through configuration files as well as environment variables.

Command line options have precedence over environment variables which have precedence over configuration options.

Configuration parameters be put into config.py as well as instance/config.py, which is is ignored by .gitignore. Configuring through environment variables requires the prefix of "WTSTATUS_", e.g. WTSTATUS_DEBUG=True ./main.py run leads to running a debugging enabled server.

Through these changes support for deploying the application in a production environment with e.g. uwsgi is also enabled.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: refactor-app-running