How exactly have you added it? It is not enough to just add is in the deps-area, you also need to add it to applications. Then it should be started automatically when starting your outer app.
BUT I do not know if that really starts up the server or not. Perhaps you can find some further hints when taking a look at the phoenix.server mix-task
not sure which bits would be useful but here is the app im trying to start the phoenix site froms mix.exs
the phoenix app (node visualiser) is a fresh mix phoenix.new -no-ecto app, and runs fine on its own on port 4000 with the mix phoenix.server command
if i start the test_app with iex -S mix and issue Application.started_applications() the node_visualiser is started in that list
let me know if i can post anything else that would be useful
defmodule TestApp.Mixfile do
use Mix.Project
def project do
[app: :test_app,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
def application do
[applications: [:logger, :node_visualiser]]
end
defp deps do
[{:node_visualiser, git: "git@github.com:cloudhousetech/node_visualiser.git"}]
end
end
if anyone is interested, i got the phoneix endpoints started by taking the config from the web site and adding it to the apps config files (adding server: true to it)
this got the server starting when i started my app, but still have some css/js stuff to work out.
When you have figured it all out and it is working as intended, it would be nice if you could blog about it, this really sounds like some very interesting topic!
Hi Dan. I know time has passed, but my use case is similar to yours. The link is broken, do you have the post somewhere else? It would be much appreciated.