Yii v2 snippet guide III

Comparing #46 with #47

Revision #47 was created by rackycz rackycz on Mar 8, 2021, 2:42:18 PM.

Docker

Content

[...]
- Set status=10 to your first user

Now you have your account and you can log in to Backend

*I was not able to use xDebug. It just does not work now. I will update as soon as I find out.*

 
**How to enter Docker's bash (cli, command line)**
 
 
Navigate in command line to the folder of your docker-project and run command:
 
- docker ps
 
- This will list all services you defined in docker-compose.yml
 
 
The last column of the list is NAMES. Pick one and copy its name. The run command:
 
 
- docker exec -it {NAME} /bin/bash
 
- ... where {NAME} is your service name. For example:
 
- docker exec -it yii-advanced_backend_1 /bin/bash