Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.32 KB

File metadata and controls

38 lines (25 loc) · 1.32 KB

Github Actions

The following workflows are supported.

Deploy to Heroku Workflow usage instruction

Requirements

  • A pre-generated Heroku App
  • A Heroku API key. It can be generated under your Account Settings
  • Three Heroku config vars:
    • DATABASE_URL: It will be created automatically when the PostgreSQL add-on is added.
    • PHX_HOST: if your app name is acme, the value of this var is: acme.herokuapp.com
    • HEALTH_PATH: Health path (eg: "/_health")
    • SECRET_KEY_BASE: use the mix phx.gen.secret to get a new secret and set it as the value of this var.

How to use

  • Defining two Github secrets to hold the value of Heroku API key and Heroku app name:

    • HEROKU_API_KEY
    • HEROKU_APP_NAME
  • If you plan on using WebSockets, the timeout for the WebSocket transport needs to be decreased in lib/hello_web/endpoint.ex.

    socket "/socket", HelloWeb.UserSocket,
      websocket: [timeout: 45_000],
      longpoll: false
      ...  

    otherwise, leaving it set to false as default.