forked from jsdrupal/drupal-admin-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (42 loc) · 1.35 KB
/
Copy pathMakefile
File metadata and controls
50 lines (42 loc) · 1.35 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
SHELL := /bin/sh
PATH := bin:$(PATH)
#####################
# Docker/Containers #
#####################
build:
uid=$$(id -u) gid=$$(id -g) docker-compose build
up:
docker-compose up
clean:
make clean:docker
make clean:files
clean\:docker:
docker-compose rm -vsf
docker-compose down -v --remove-orphans
clean\:files:
sudo git clean -ffdX
########
# Node #
########
node\:cli:
docker exec -it drupal_admin_ui_node /bin/sh
##########
# Drupal #
##########
drupal\:cli:
docker exec -it drupal_admin_ui_drupal /bin/sh
drupal\:reinstall:
sudo rm demo/docroot/sites/default/settings.php
# To enable XDebug, you will need to append your local ip address, and optionally your idekey
# e.g. IP=10.0.1.5 IDEKEY=PHPSTORM make drupal:xdebug:enable
# If using PHPStorm, add a server under PHP / Servers and set Name to "127.0.0.1"
drupal\:xdebug\:enable:
docker exec -u root -it drupal_admin_ui_drupal /bin/sh -c 'echo -e "zend_extension=xdebug.so\n\
xdebug.remote_enable=1\n\
xdebug.remote_autostart=on\n\
xdebug.remote_host=${IP}\n\
xdebug.idekey=${IDEKEY}" > /etc/php7/conf.d/xdebug.ini'
docker exec -u root -it drupal_admin_ui_drupal supervisorctl restart php-fpm
drupal\:xdebug\:disable:
docker exec -u root -it drupal_admin_ui_drupal /bin/sh -c 'echo "" > /etc/php7/conf.d/xdebug.ini'
docker exec -u root -it drupal_admin_ui_drupal supervisorctl restart php-fpm