You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is based on this recommendation to not check those files into Git (as I haven't modified them):
The Mautic Composer Scaffold plugin can download the scaffold files (like index.php, .htaccess, …) to the docroot/ directory of your project. If you have not customized those files you could choose to not check them into your version control system (e.g. git)
This is problematic when updating Mautic to the latest version (composer update). It removes /docroot/app/config/local.php.
Before composer update, the local.php file in the folder tree below:
After running composer update to update Mautic, the file is gone:
I fixed it by storing local.php in config/local.php (in the root of my Mautic installation) and pointing Mautic to that file through paths_local.php as follows:
This basically means that I can just store local.php in the config folder in the root directory of my Mautic instance.
Just wanted to report this here in case someone is running into the same issue. Curious to hear from others whether they have a better approach to this 👍🏼
I run into the same issue and tried to build a post-composer hook to symlink the local.php from a shared/ folder in project-root (similar to the approach which Deployer does):
Consider a Mautic installation created as follows:
In the root directory, I have a
.gitignore
which is the default but with the following lines added:This is based on this recommendation to not check those files into Git (as I haven't modified them):
This is problematic when updating Mautic to the latest version (
composer update
). It removes/docroot/app/config/local.php
.Before
composer update
, thelocal.php
file in the folder tree below:After running
composer update
to update Mautic, the file is gone:I fixed it by storing
local.php
inconfig/local.php
(in the root of my Mautic installation) and pointing Mautic to that file throughpaths_local.php
as follows:The contents of
scaffold-files/paths_local.php
are as follows:This basically means that I can just store
local.php
in theconfig
folder in the root directory of my Mautic instance.Just wanted to report this here in case someone is running into the same issue. Curious to hear from others whether they have a better approach to this 👍🏼
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: