/blog

Primary LanguagePHP

Install & Start:

docker-compose up -d;

docker-compose exec php /bin/bash -c "composer install";

docker-compose exec php /bin/bash -c "php bin/console doctrine:database:create";
docker-compose exec php /bin/bash -c "php bin/console doctrine:schema:create";
docker-compose exec php /bin/bash -c "php bin/console doctrine:fixtures:load";

docker-compose exec php /bin/bash -c "php bin/console --env=test doctrine:database:create";
docker-compose exec php /bin/bash -c "php bin/console --env=test doctrine:schema:create";
docker-compose exec php /bin/bash -c "php bin/console --env=test doctrine:fixtures:load";

Drop:

docker-compose exec php /bin/bash -c "php bin/console doctrine:database:drop --force";
docker-compose exec php /bin/bash -c "php bin/console --env=test doctrine:database:drop --force";

Recreate:

docker-compose up -d --build --force-recreate

Enter to docker:

docker-compose exec php /bin/bash

remove all:

docker-compose down; docker rm -f $(docker ps -a -q); docker volume rm $(docker volume ls -q);

Tests

docker-compose exec php /bin/bash -c "composer test";

CS FIX

docker-compose exec php /bin/bash -c "composer cs-fix";

DEV URL

http://localhost:8888/