-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
65 lines (55 loc) · 2.98 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
include .env
export
.PHONY: install
install: install-wordpress \
install-woocommerce \
initialize-woocommerce \
install-woocommerce-default-pages \
import-sample-products \
install-storefront-theme \
install-icepay-plugin
.PHONY: install-wordpress
install-wordpress:
docker-compose exec app wp core install \
--url="${APP_SUBDOMAIN}.${EXPOSE_HOST}" \
--title="${APP_SUBDOMAIN}" \
--admin_user="admin" \
--admin_password="admin" \
--admin_email="example@icepay.com" \
--skip-email
.PHONY: install-woocommerce
install-woocommerce:
docker-compose exec app wp plugin install woocommerce \
--activate
.PHONY: initialize-woocommerce
initialize-woocommerce:
docker-compose exec app wp option set woocommerce_store_address "Joan Muyskenweg 37"
docker-compose exec app wp option set woocommerce_store_address_2 ""
docker-compose exec app wp option set woocommerce_store_city "Amsterdam"
docker-compose exec app wp option set woocommerce_default_country "NL:*"
docker-compose exec app wp option set woocommerce_store_postcode "1114AN"
docker-compose exec app wp option set woocommerce_currency "EUR"
docker-compose exec app wp option set woocommerce_product_type "both"
docker-compose exec app wp option set woocommerce_allow_tracking "no"
docker-compose exec app wp option set --format=json woocommerce_stripe_settings '{"enabled":"no","create_account":false,"email":false}'
docker-compose exec app wp option set --format=json woocommerce_klarna_checkout_settings '{"enabled":"no"}'
docker-compose exec app wp option set --format=json woocommerce_ppec_paypal_settings '{"reroute_requests":false,"email":false}'
docker-compose exec app wp option set --format=json woocommerce_cheque_settings '{"enabled":"yes"}'
docker-compose exec app wp option set --format=json woocommerce_bacs_settings '{"enabled":"yes"}'
docker-compose exec app wp option set --format=json woocommerce_cod_settings '{"enabled":"yes"}'
docker-compose exec app wp option set --format=json woocommerce_flat_rate_1_settings '{"title":"Flat rate","tax_status":"taxable","cost":"4.95"}'
docker-compose exec app wp option set --format=json woocommerce_flat_rate_2_settings '{"title":"Flat rate","tax_status":"taxable","cost":"3.95"}'
.PHONY: install-woocommerce-default-pages
install-woocommerce-default-pages:
docker-compose exec app wp wc --user=1 tool run install_pages
.PHONY: import-sample-products
import-sample-products:
docker-compose exec app wp plugin install wordpress-importer --activate
docker-compose exec app wp import wp-content/plugins/woocommerce/sample-data/sample_products.xml --authors=create --quiet
.PHONY: install-storefront-theme
install-storefront-theme:
docker-compose exec app wp theme install storefront --activate
.PHONY: install-icepay-plugin
install-icepay-plugin:
docker-compose exec --workdir /var/www/html/wp-content/plugins/icepay-for-woocommerce app composer install
docker-compose exec app wp plugin activate icepay-for-woocommerce --user=1