title: How to run a server in background with CircleCI?
body: <p>I am using CircleCI with my Django project. I want to run a server (specifically <code>python manage.py runserver</code>) in the background for some specific selenium tests.</p>
  
  <p>My <code>config.yml</code> is somewhat like</p>
  
  <pre><code>version: 2
  jobs:
    build:
      docker:
        - image: circleci/python:3.6.1-browsers
        - image: selenium/standalone-chrome
  
      working_directory: ~/myproject
  
      steps:
        - checkout
        - run:
            name: install dependencies
            command: |
              python3 -m venv venv
              . venv/bin/activate
              pip install -r requirements.txt
  
        - run:
            name: run unit tests
            command: |
              . venv/bin/activate
              python manage.py test
  
        - run:
            name: run selenium tests
            command: |
              . venv/bin/activate
              python manage.py migrate
              python manage.py runserver 8000 
              python manage.py run_selenium_tests         
  </code></pre>
  
  <p>I could make it work by running selenium tests inside django <code>LiveServerTestCase</code>. But I want to run selenium tests independently, for that I need runserver to be running in the background. Right now circleci stops execution at <code>python manage.py runserver</code> and eventually timeouts. Any idea to do this?</p>