---
# System prepended metadata

title: National Grid Scratchpad

---

# National Grid Scratchpad

https://gitlab.com/datopian/clients/data-subscriptions/-/blob/master/heroku.yml

```
build:
  docker:
    web: Dockerfile
    name_of_second_service: another_folder/Dockerfile

run:
  web: gunicorn -b 0.0.0.0:$PORT data_subscriptions.wsgi:app
  worker:
    command:
      - celery -A data_subscriptions.worker.tasks worker -B --loglevel=$WORKER_LOG_LEVEL --schedule=/tmp/celerybeat-schedule
    image: web
  name_of_second_service: command_to_run_the_server --port=$PORT
```

`command_to_run_the_server` is required, even if it's also defined inside the `Dockerfile`.

After deploying it for the first time, you must manually enable the service in the Dashboard, by moving the dyno quantity from 0 to 1.


two ports in Heroku: https://stackoverflow.com/questions/37636580/heroku-node-js-i-have-a-server-which-uses-multiple-ports-how-can-i-get-herok