Skip to content

Instantly share code, notes, and snippets.

@jarohen
Created December 13, 2014 23:04
Show Gist options
  • Save jarohen/f43f14f9e2f9e2542dcc to your computer and use it in GitHub Desktop.
Save jarohen/f43f14f9e2f9e2542dcc to your computer and use it in GitHub Desktop.
Example phoenix config, dispatching on user
{:db {::component my-app.db/make-db-component
:host "host"
:port 5432
:schema "myapp_test"}
:webapp {::component my-app.web/make-webapp
:db ::dep
:port 3000}
:phoenix/environments {"prod"
{:db {:schema "myapp_prod"}
:webapp {:port 3000}}}
:phoenix/hosts {"some-host"
{:webapp {:port 8080}
:phoenix/users {"malcolm"
{:webapp {:port 8090}}
"james"
{:webapp {:port 8091}}}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment