Elixir Deployment Options

One possibility is to just point both of those subdomains at your gigalixir app. You’d run something like

gigalixir add_domain myapp api.myapp.com
gigalixir add_domain myapp frontend.myapp.com

Then update the DNS records for both subdomains. More details on setting up a custom domain here:

That should work, but it also might mean that frontend.myapp.com will respond to api requests unless you block it yourself.

We’re currently looking into implementing a way for a single umbrella app to listen on multiple ports. Not sure when that’ll be available though or what it’ll look like.

2 Likes