-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
42 lines (32 loc) · 1.7 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-include .env
export
# ------------------------------------------------------------------------------------------------------------
## Docker installation commands
.PHONY: update-host
update-host:
docker-compose exec app mysql -uroot -proot shopware -e "update sales_channel_domain set url='https://${APP_SUBDOMAIN}.${EXPOSE_HOST}' where url LIKE '%localhost%'"
.PHONY: install
install:
docker-compose exec app php bin/console plugin:refresh
docker-compose exec app php bin/console plugin:install --clearCache --activate MltisafeMultiSafepay
.PHONY: phpunit
phpunit:
docker-compose exec --workdir=/var/www/html app vendor/bin/phpunit --configuration=./custom/plugins/MltisafeMultiSafepay/phpunit.xml.dist
administration-build:
docker-compose exec app php psh.phar administration:build --DB_HOST="127.0.0.1" --DB_USER="root" --DB_PASSWORD="root"
mv ./src/Resources/public/administration/js/mltisafemultisafepay.js ./src/Resources/public/administration/js/mltisafe-multi-safepay.js
docker-compose exec app php psh.phar cache --DB_HOST="127.0.0.1" --DB_USER="root" --DB_PASSWORD="root"
.PHONY: storefront-build
storefront-build:
docker-compose exec app php psh.phar storefront:build --DB_HOST="127.0.0.1" --DB_USER="root" --DB_PASSWORD="root"
# ------------------------------------------------------------------------------------------------------------
.PHONY: composer-production
composer-production:
@composer install --no-dev
.PHONY: composer-dev
composer-dev:
@composer install
.PHONY: activate-plugin
activate-plugin:
@cd ../../.. && php bin/console plugin:install -c -r --activate MltisafeMultiSafepay
# ------------------------------------------------------------------------------------------------------------