Pheonix changes so often that I'm not sure what I'm doing is right.
I try to follow some tutorials, and they all have the “mix phoenix.start” command right after the compilation is complete and start the server. (There is some talk on the Github problems page that they are going to replace this with the mix phoenix.server command, and you should do something manually and not follow it. In any case, this is development version v0.8.0- dev I am using the latest stable version 0.7.2)
I get an error trying to issue the "mix phoenix.start" command trying to start the server
(AppName: PhoenixCrud):
> mix phoenix.start =INFO REPORT==== 13-Dec-2014::15:23:08 === application: logger exited: stopped type: temporary =INFO REPORT==== 13-Dec-2014::15:23:08 === application: cowboy exited: stopped type: temporary =INFO REPORT==== 13-Dec-2014::15:23:08 === application: cowlib exited: stopped type: temporary =INFO REPORT==== 13-Dec-2014::15:23:08 === application: ranch exited: stopped type: temporary ** (Mix) Could not start application phoenix_crud: PhoenixCrud.start(:normal, []) returned an error: shutdown: failed to start child: PhoenixCrud.Endpoint ** (EXIT) an exception was raised: ** (UndefinedFunctionError) undefined function: PhoenixCrud.Endpoint.start_link/0 (phoenix_crud) PhoenixCrud.Endpoint.start_link() (stdlib) supervisor.erl:314: :supervisor.do_start_child/2 (stdlib) supervisor.erl:297: :supervisor.start_children/3 (stdlib) supervisor.erl:263: :supervisor.init_children/2 (stdlib) gen_server.erl:306: :gen_server.init_it/6 (stdlib) proc_lib.erl:237: :proc_lib.init_p_do_apply/3
The documents have an updated phoenix.server command, but I tried it too, and this mix says that the task cannot be found.
In any case, it looks like the start_link function is missing in app_name / lib / app_name / endpoint.ex. Should I provide this? I have no idea what to put now, because I'm just trying to create a Phoenix web framework and know nothing about it (hence the lessons.)
So, I have to provide the start_link function, if so, can someone give me a little to go into it, to try to follow some tutorials. Otherwise, is this a mistake?
source share