Skip to content

nfqakademija/keliones-draugas

Repository files navigation

KELIONĖS DRAUGAS

Instalation

First time

sudo su -c 'echo "127.0.0.1 symfony.local" >> /etc/hosts'
docker build .docker/php -t php.symfony 
docker build .docker/frontend/ -t frontend.symfony
docker-compose -f .docker/docker-compose.yml up -d

Front container

docker-compose -f .docker/docker-compose.yml run frontend.symfony
npm install
yarn run encore dev
yarn run encore dev --watch

PHP container

docker exec -it php.symfony bash
composer install
bin/console cache:clear
bin/console assets:install
bin/console doctrine:database:drop --if-exists --force
bin/console doctrine:database:create --if-not-exists
bin/console doctrine:migrations:migrate --no-interaction
bin/console doctrine:fixtures:load --no-interaction --append

URL

Default: http://symfony.local:8080

SSL: https://symfony.local:8443