Skip to main content

Prerequisites

Deploy from Recipe

1

Import Project

project:
  name: recipe-elixir
services:
  - hostname: api
    type: [email protected]
    enableSubdomainAccess: true
    buildFromGit: https://github.com/zeropsio/recipe-elixir
  - hostname: db
    type: postgresql@16
    mode: NON_HA

Create Phoenix App

mix phx.new myapp
cd myapp

Add zerops.yaml

zerops:
  - setup: web
    build:
      base: [email protected]
      buildCommands:
        - mix local.hex --force
        - mix local.rebar --force
        - mix deps.get
        - mix compile
      deployFiles: .
    run:
      start: mix phx.server
      ports:
        - port: 4000
      envVariables:
        MIX_ENV: prod

Next Steps

Overview

Runtime features

Build docs developers (and LLMs) love