Giter Site home page Giter Site logo

sudoku's Introduction

How to run Local:

First time:

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

Not a first time:

cd ./infra/local
terraform init

How to build ClientApp automatically on updates

Run inside the Docker container (use two console tabs)

cd /app
./vueBuildAndWatch.sh
./indexHtmlWatchAndCopy.sh 

How to run Staging

From the Scratch

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

How to apply changes to Local

terraform apply -auto-approve

How to apply changes to Staging

Check no other Deployments in progress Otherwise call ./stop.sh sudoku to stop the whole service and then deploy it again.

Terraform changes

terraform apply

Docker or Codebase changes

./build.sh
./deploy.sh sudoku
./deploy.sh sudoku_mercure

How to Shutdown Staging

Temporary / Partially

./stop.sh sudoku
./shop.sh sudoku_mercure

Fully

terraform destroy

XDebug on Local

Enable Debug Helper Chrome extension Enable Debug Listening in PHPStorm

Troubleshooting

XDebug

  • Container MUST contain XDebug php extension. Use php -r "phpinfo();" | grep debug to verify.
  • XDebug configuration key in container client_host MUST be host.docker.internal to communicate with Host machine. Use XDEBUG_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 as PHPSTORM. Use XDEBUG_IDE_KEY env var in the Container.
  • PHPStorm MUST NOT ignore external connections. Disable checkbox in Settings -> PHP -> Debug.

Docker

  • Try to clean-up images

sudoku's People

Contributors

vatvit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.