Skip to content

Commit

Permalink
fix issue with mariadb mysql access
Browse files Browse the repository at this point in the history
  • Loading branch information
mfilip committed Oct 10, 2023
1 parent af70764 commit 41738a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ static_deploy:
shell:
docker-compose exec web bash

.PHONY: shell-db
shell-db:
docker-compose exec db bash

## Enable magento cache. Should be disabled to load extensions
.PHONY: cache-enable
cache-enable:
Expand All @@ -65,8 +69,7 @@ cache-flush:
## Set base URL as 127.0.0.1 instead of localhost - fixes session expirey issue
.PHONY: set-base-url
set-base-url:
docker-compose exec -T db mysql -u magento -pmagento -D magento -e 'UPDATE `core_config_data` SET `value`="http://127.0.0.1:3000/" WHERE path="web/secure/base_url"'
docker-compose exec -T db mysql -u magento -pmagento -D magento -e 'UPDATE `core_config_data` SET `value`="http://127.0.0.1:3000/" WHERE path="web/unsecure/base_url"'
docker-compose exec -T db mariadb -u magento -pmagento -D magento -e 'UPDATE `core_config_data` SET `value`="http://127.0.0.1:3000/" WHERE path="web/secure/base_url"'

## Fix for session expired error in development
.PHONY: fix-session-expire
Expand Down

0 comments on commit 41738a4

Please sign in to comment.