-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
59 lines (41 loc) · 1.98 KB
/
makefile
File metadata and controls
59 lines (41 loc) · 1.98 KB
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
env := php-fpm-oxidnext-development
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
init:
docker exec -it $(env) sh /app/init.sh
db-import:
docker exec -it $(env) sh /app/db-import.sh
up:
docker-compose up
down:
docker-compose stop
bash:
docker exec -it $(env) /bin/sh
build:
$(dc) up --build
generate_namespaces:
docker exec -it $(env) /bin/sh -c "/app/vendor/bin/oe-eshop-unified_namespace_generator"
ide_helper:
docker exec -it $(env) /bin/sh -c "/app/vendor/bin/oe-eshop-ide_helper"
clear-cache:
docker exec -it $(env) /bin/sh -c "rm -r /app/source/tmp/* && mkdir /app/source/tmp/ && chmod 777 -R /app/source/tmp/"
docker exec -it $(env) /bin/sh -c "rm -r /app/source/cache/* && mkdir /app/source/cache/ && chmod 777 -R /app/source/cache/"
composer-update:
docker exec -it $(env) /bin/sh -c 'cd /app/ && composer update'
composer-dump-autoload:
docker exec -it $(env) /bin/sh -c 'cd /app/ && composer dump-autoload'
migrate:
docker exec -it $(env) /bin/sh -c '/app/vendor/bin/oe-eshop-db_migrate migrations:migrate'
update-views:
docker exec -it $(env) /bin/sh -c '/app/vendor/bin/oe-eshop-db_views_generate'
create-migration:
docker exec -it $(env) /bin/sh -c '/app/vendor/bin/oe-eshop-db_migrate migrations:generate PR && chmod 777 -R /app/source/migration/project_data'
console-module-install:
@read -p "Enter the folder name of the module you want to install (e.g. esy/modulename): " MODULEFOLDER \
&& echo "Installing module /app/source/modules/$${MODULEFOLDER}" \
&& docker exec -it $(env) /bin/sh -c "/app/vendor/bin/oe-console oe:module:install /app/source/modules/$${MODULEFOLDER}"
console-module-install-oxid-next:
docker exec -it $(env) /bin/sh -c "/app/vendor/bin/oe-console oe:module:install /app/source/modules/na/oxidnext"
console-apply-configuration:
docker exec -it $(env) /bin/sh -c "/app/vendor/bin/oe-console oe:module:apply-configuration && chmod 777 -R /app/var"
chmod-tmp:
docker exec -it $(env) /bin/sh -c "chmod 777 -R /app/source/tmp"