File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ USER=$$(whoami)
44DOCKER =docker-compose exec --user=$(USER ) backend-php
55# The PHP binary to use, you may add arguments to PHP here
66PHP =php
7+ # directories writeable by webserver
8+ WRITEABLE_DIRS =/app/runtime /app/logs /app/backend/web/assets
79
810
911# default target lists general usage information
@@ -43,9 +45,12 @@ bash: cli
4345cli :
4446 $(DOCKER ) bash
4547
46- start-docker : config/components-dev.local.php config/components-test.local.php backend/config/cookie-validation.key env.php
48+ start-docker : config/components-dev.local.php config/components-test.local.php backend/config/cookie-validation.key env.php stop
4749 docker-compose up -d
48- $(DOCKER ) sh -c ' cd /app && composer install'
50+ docker-compose exec -T backend-php bash -c " grep '^$( shell whoami) :' /etc/passwd || useradd -m '$( shell whoami) ' --uid=$( shell id -u) -G www-data -s /bin/bash"
51+ docker-compose exec -T backend-php bash -c " sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/' /home/$( shell whoami) /.bashrc && sed -i 's~etc/bash_completion~etc/bash_completion.d/yii~' /home/$( shell whoami) /.bashrc"
52+ docker-compose exec -T backend-php bash -c " chgrp -R www-data $( WRITEABLE_DIRS) && chmod -R g+w $( WRITEABLE_DIRS) "
53+ $(DOCKER ) sh -c ' cd /app && composer install --no-progress --no-interaction --ansi'
4954 @echo " "
5055 @echo " API: http://localhost:8337/"
5156# @echo "API docs: http://localhost:8337/docs/index.html" # not yet :)
Original file line number Diff line number Diff line change 1- FROM yiisoftware/yii2-php:7.3 -apache
1+ FROM yiisoftware/yii2-php:7.4 -apache
22
33COPY config/apache.conf /etc/apache2/sites-enabled/000-default.conf
Original file line number Diff line number Diff line change 1- FROM yiisoftware/yii2-php:7.3 -apache
1+ FROM yiisoftware/yii2-php:7.4 -apache
22
33COPY config/apache.conf /etc/apache2/sites-enabled/000-default.conf
Original file line number Diff line number Diff line change 2222 "platform" : {"php" : " 7.1.3" },
2323 "fxp-asset" : {
2424 "enabled" : false
25+ },
26+ "allow-plugins" : {
27+ "yiisoft/yii2-composer" : true
2528 }
2629 },
2730 "repositories" : [
You can’t perform that action at this time.
0 commit comments