Is it possible to use caddy for different environment like production , developement for symfony app

(Roshan Chamlagai) #1

hello ,
i want to configure a caddy file for symfony app for different environments , can anyone help me ?

(Griffins Oringo) #2

Whats the difference in the environments? I use caddy for both local dev and production. Normally i do have a Caddyfile in the project which enables me to cd into the project dir and just caddy :grinning: basicaly run the caddy command and am good to go. And in production things get a lil bit more complicated set up a systemd service to manage caddy and config is normally in /etc/caddy/Caddyfile

(Toby Allen) #3

You can simply declare multiple host or ports {

Root c:\web
} {

Root c:\web2

Localhost:3434 {

Root c:\web4