[TOOLS] Add make command 'database-force-schema-update' to update the database schema and 'redis-shell'
This commit is contained in:
parent
8ca61eea77
commit
c8e00e4187
6
Makefile
6
Makefile
|
@ -9,6 +9,9 @@ up: .PHONY
|
|||
down: .PHONY
|
||||
docker-compose down
|
||||
|
||||
redis-shell:
|
||||
docker exec -it $(strip $(DIR))_redis_1 sh -c 'redis-cli'
|
||||
|
||||
php-repl: .PHONY
|
||||
docker exec -it $(strip $(DIR))_php_1 sh -c '/var/www/social/bin/console psysh'
|
||||
|
||||
|
@ -18,6 +21,9 @@ php-shell: .PHONY
|
|||
psql-shell: .PHONY
|
||||
docker exec -it $(strip $(DIR))_db_1 sh -c "psql -U postgres social"
|
||||
|
||||
database-force-schema-update:
|
||||
docker exec -it $(strip $(DIR))_php_1 sh -c "/var/www/social/bin/console doctrine:schema:update --dump-sql --force"
|
||||
|
||||
test: .PHONY
|
||||
cd docker/testing && docker-compose run php; docker-compose down
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user