Caddy (Caddy v2.0.4)
View SourceCaddy
Start Caddy HTTP Server in supervisor tree
- Start in extra_applications
def application do
[
extra_applications: [Caddy.Application]
]
end
- Notice
If caddy_bin is not specifiy, Caddy.Server will not start.
Set caddy_bin
to the path of Caddy binary file and start Caddy.Server
.
Caddy.Cofnig.set_bin("/usr/bin/caddy")
Caddy.restart_server()
This will restart server automatically
Caddy.Cofnig.set_bin!("/usr/bin/caddy")
Summary
Functions
Returns a specification to start this module under a supervisor.
Restart Caddy Server
Manually Start Caddy Server.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Restart Caddy Server
Manually Start Caddy Server.
This is useful when you want to start Caddy Server in iex
console.
@spec stop(term()) :: :ok