andyl / rfxi

Rfx Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help Wanted: Server Launch from CLI

andyl opened this issue · comments

commented

The CLI has an option to launch a webserver, using ./rfx --server. The webserver gives REST and Websocket integration options. The Neovim plugin will start the webserver as a child process, then interact with the webserver over HTTP/REST.

I'm having a hard time getting the webserver to launch from the CLI properly. The logic for server launch is encapsulated in RfxCli.Server#start/0. The CLI-launch technique is used in livebook, so it must be possible here.

Launching from the command line with $ mix phx.server or $MIX_ENV=prod mix phx.server works fine.

Launching from the escript using ./rfx --server brings up the server, but fails to deliver CSS or JS assets.

Any help, PRs, suggestions, hints, welcome!!

commented

Solved.