Skip to content

Conversation

@lucatume
Copy link
Contributor

@lucatume lucatume commented Nov 27, 2025

Main Changes

Important

This includes an awesome bug fix to properly read a project's .env.slic.local so overriding now works in all scenarios when running slic use <project>.

  • Fixed - Handling of the project in the use command to guarantee that project specific override files will apply to all operations performed during the handling of the use command, including possible spin up of the stack.
  • Fixed - Correctly handle the SLIC_WP_AUTO_UPDATE_CORE, allow "undefining" this env var with SLIC_WP_AUTO_UPDATE_CORE=
  • Fixed - Correctly handle the SLIC_AUTOMATIC_UPDATER_DISABLED, allow "undefining" this env var with SLIC_AUTOMATIC_UPDATER_DISABLED=
  • Fixed - Correctly handle the SLIC_WP_HTTP_BLOCK_EXTERNAL, allow "undefining" this env var with SLIC_WP_HTTP_BLOCK_EXTERNAL=
  • Changed - update-dump command now validates dump file existence before processing, provides clearer progress messages, and properly restores the original WordPress version after testing with a specific version.
  • Fixed - read_env_file() no longer reads commented out env vars, e.g. # SOME_VAR=test would previously be set.

@lucatume lucatume self-assigned this Nov 27, 2025
defunctl and others added 19 commits November 27, 2025 15:38
While the `use` command is being handled, the project path will still
point at the `here` target, not the new target set by the `use` command.
I.e. the `get_project_local_path()` function will return
`/home/wp/wp-content/plugins` and not
`/home/wp/wp-content/plugins/the-events-calendar`.
From this follows that the project configuration files will be read from
the `/home/wp/wp-content/plugins` directory and not from the
`/home/wp/wp-content/plugins/the-events-calendar` one invlalidating the
effect of some of the env vars defined in files like the
`.env.slic.local` that might be present in the project directory
(`the-events-calendar` in this case).
By setting the project path early during a `use` command handling, env
vars  that affect the docker stack (e.g. the `SLIC_DB_NO_MIN` one) will
correctly have the desired effect.
@defunctl defunctl marked this pull request as ready for review November 28, 2025 18:07
@defunctl defunctl merged commit 577d848 into main Nov 28, 2025
40 of 49 checks passed
@defunctl defunctl deleted the 2.1.5 branch November 28, 2025 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants