We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Deployment

Hi,

I was just wandering if there was any prefered way to handle the configuration file, and different deploy environments?

that piece of logic probably belongs in your bootstrap file. app/cli.php public/index.php for instance. I have multiple config files based and include the right one based on the set ENVIRONMENT which might be dev, stage, live for now. got (dev|stage|live).config.php files in the app/config folder.