Skip to content

Commit

Permalink
Configuring Magento2 with lock-env
Browse files Browse the repository at this point in the history
  • Loading branch information
mischabraam committed Sep 21, 2023
1 parent 183cfec commit 84dbcca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/ValetPlus/DriverConfigs/Magento2ValetDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ public function configure()

if (!$envExists) {
output("\tSetting base url...");
$this->cli->quietlyAsUser('magerun2 config:store:set web/unsecure/base_url ' . $url);
$this->cli->quietlyAsUser('magerun2 config:store:set web/secure/base_url ' . $url);
$this->cli->quietlyAsUser('magerun2 config:set --lock-env web/unsecure/base_url ' . $url);
$this->cli->quietlyAsUser('magerun2 config:set --lock-env web/secure/base_url ' . $url);

output("\tEnabling URL rewrites...");
$this->cli->quietlyAsUser('magerun2 config:store:set web/seo/use_rewrites 1');
$this->cli->quietlyAsUser('magerun2 config:set web/seo/use_rewrites 1');
}

if (!$envExists || !$configExists) {
Expand Down

0 comments on commit 84dbcca

Please sign in to comment.