Revision #47 has been created by rackycz on Mar 8, 2021, 2:42:18 PM with the memo:
Docker
« previous (#46) next (#48) »
Changes
Title
unchanged
Yii v2 snippet guide III
Category
unchanged
Tutorials
Yii version
unchanged
2.0
Tags
unchanged
tutorial,yii2,beginer
Content
changed
[...]
- 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