How to set disallow_file_mods to false for production?

Now that bedrock does not contain a production.php environment file, how do you set disallow_file_mods to false?

We tried adding it to the .env as

DISALLOW_FILE_EDIT=false
DISALLOW_FILE_MODS=false

but no luck.

Two options:

  1. just create a production.php file :smile: we removed it by default but you can still put anything you want in there
  2. set that value in the main application.php config then override it in development

Ah lol, maybe we should include an empty one with a comment in it or something? I’m sure it’s in the docs somewhere though and I just missed it. Thanks!

The docs mention you can create any env file and it will be loaded in that environment: https://roots.io/bedrock/docs/configuration-files/

There’s nothing special about production

This topic was automatically closed after 42 days. New replies are no longer allowed.