# Starts the django server in a pipenv, if not already running
class tracingcarbon::runserver () {
  exec { 'Run django' :
    command => 'pipenv run python3 manage.py runserver &',
    path    => [ '/home/mange61/.local/bin', '/usr/bin', '/bin' ],
    cwd     => '/home/mange61/tracing-carbon',
    user    => 'mange61',
    unless  => 'nc localhost 8000 -w 1',
  }
}