Skip to content

Commit

Permalink
Merge pull request #67 from DuboisS/patch-1
Browse files Browse the repository at this point in the history
Makefile : add env-phpl source aliases, use project.sh in env-php
  • Loading branch information
matthieupetel authored Mar 30, 2021
2 parents 429fef3 + fd071fe commit 327f47e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ env-nginx: ## Open a terminal in the "nginx" container
docker-compose exec -u nginx:nginx nginx sh -l

env-php: ## Open a terminal in the "php" container
docker-compose exec -u www-data:www-data php sh -l -c "/bin/bash"
docker-compose exec -u www-data:www-data php bash -l -c "source ./project.sh use && /bin/bash"

env-phpl: ## Open a terminal in the "php" container and prompt source locale
@read -p "Enter locale: " locale; \
docker-compose exec -u www-data:www-data php bash -l -c "source ./project.sh use $$locale && /bin/bash"

source: ## Set source with given locale
@read -p "Enter locale: " locale; \
source ./project.sh use $$locale

env-ps: ## List all containers managed by the environment
docker-compose ps
Expand Down

0 comments on commit 327f47e

Please sign in to comment.