Quickstart
Elixir + Phoenix
Conductor works well with Phoenix LiveView apps. Here's a basic conductor.json to add to the root directory of your project.
Once added, every new workspace will automatically copy your environment configuration and install dependencies.
{
"scripts": {
"setup": "cp $CONDUCTOR_ROOT_PATH/.env . && mix deps.get && mix ecto.setup",
"run": "PORT=$CONDUCTOR_PORT mix phx.server",
"archive": ""
}
}If you use runtime configuration with config/runtime.exs and secrets, you may want to copy those too:
{
"scripts": {
"setup": "cp $CONDUCTOR_ROOT_PATH/.env . && cp $CONDUCTOR_ROOT_PATH/config/dev.secret.exs config/dev.secret.exs && mix deps.get && mix ecto.setup",
"run": "PORT=$CONDUCTOR_PORT mix phx.server",
"archive": ""
}
}