forked from shopwareDowntown/downtown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
29 lines (21 loc) · 932 Bytes
/
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
#
# Makefile
#
.PHONY: help
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
# ------------------------------------------------------------------------------------------------------------
setup: ## Installs Downtown
docker-compose up -d
docker-compose exec cli sh -c 'composer install'
docker-compose exec cli sh -c 'bin/console system:setup'
docker-compose exec cli sh -c 'bin/console system:install --create-database --basic-setup --force'
docker-compose exec cli sh -c 'bin/console system:generate-jwt-secret --force'
docker-compose exec cli sh -c 'bin/console system:generate-app-secret'
merchant: ## Runs the merchant portal
cd src/MerchantFrontend npm install && npm run start
db: ## Open MySQL container
docker-compose exec mysql mysql -p
shop: ## Opens the shop
docker-compose exec app_server sh