Yii v2 snippet guide III

Comparing #52 with #53

Revision #53 was created by rackycz rackycz on Mar 8, 2021, 11:06:37 PM.

Docker

Content

[...]
- Run command **init** to initialize the application
- You can also call **composer install** using one of following commands:
- docker-compose run --rm frontend composer install
- docker-compose run --rm backend composer install

Note: **init** and **composer** can be called locally, not necessarily via Docker. They only add files to your folder.
 
 
Now you will be able to open URLs:
- Frontend: http://localhost:20080
- Backend: http://localhost:21080
- ... see docker-compose.yml to understand these port numbers

Open common/config/main-local.php and set following DB connection:
[...]