cd ./infra/local
terraform init
./apply.sh
./docker_exec_php.sh
Run inside the Docker container
cd /app/backendApp
composer install
./bin/console doctrine:migrations:migrate
cd /app/clientApp
npm install
cd /app
./build.sh
open http://localhost
cd ./infra/local
terraform init
Run inside the Docker container (use two console tabs)
cd /app
./vueBuildAndWatch.sh
./indexHtmlWatchAndCopy.sh
Create file /Users/vatvit/.aws/credentials
with
[default]
aws_access_key_id=**************
aws_secret_access_key=************
Install AWS CLI https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
cd ./infra/staging
terraform init
terraform apply
./build.sh
./deploy.sh sudoku
./deploy.sh sudoku_mercure
terraform apply -auto-approve
Check no other Deployments in progress
Otherwise call ./stop.sh sudoku
to stop the whole service and then deploy it again.
terraform apply
./build.sh
./deploy.sh sudoku
./deploy.sh sudoku_mercure
./stop.sh sudoku
./shop.sh sudoku_mercure
terraform destroy
Enable Debug Helper Chrome extension Enable Debug Listening in PHPStorm
- Container MUST contain XDebug php extension. Use
php -r "phpinfo();" | grep debug
to verify. - XDebug configuration key in container
client_host
MUST behost.docker.internal
to communicate with Host machine. UseXDEBUG_CLIENT_HOST
env var in the Container. - (additionally can be configured, but should work without it) XDebug configuration key in container
ide_key
MUST be the same asPHPSTORM
. UseXDEBUG_IDE_KEY
env var in the Container. - PHPStorm MUST NOT ignore external connections. Disable checkbox in
Settings -> PHP -> Debug
.
- Try to clean-up images