Packages

Set up a `Plug` application with less boilerplate. `PlugAndPlay` is not a web framework – it's a small scaffold. You use `Plug` as you would normally, only *sooner*. Later, if you need more control, you can easily replace `PlugAndPlay` piece by piece or wholesale.

Current section

Files

Jump to
plug_and_play lib mix tasks server.ex
Raw

lib/mix/tasks/server.ex

defmodule Mix.Tasks.Server do
use Mix.Task
@shortdoc "Start the PlugAndPlay server application"
def run(_) do
Mix.Task.run :run, ["--no-halt"]
end
end