I'm working on a project using ddev and I don't know how to troubleshoot things because they're hidden in the containers they run in. For example, I've tried ddev logs
but it doesn't give me enough information.
相关问题
- What's the fastest way to install and set up T
- Project files missing in container DDEV / Typo3 Wi
- How can I find out what's going wrong with a d
- Communication between two ddev projects
- How can I enable an Apache module on ddev?
相关文章
- Project files missing in container DDEV / Typo3 Wi
- How can I find out what's going wrong with a d
- Communication between two ddev projects
- How can I enable an Apache module on ddev?
- Where did the ssh client go in ddev v1.3.0?
- How can I export a database from ddev?
- How can ddev automatically create additional datab
- How can I create and load a second database in dde
ddev logs
is the first line of investigation. It gets the logs of the web container (both the nginx error log and the php-fpm error log, mixed together).Extra approaches:
ddev logs -f
will "follow" the web logs, so you can see what happens when you hit a particular URL.ddev logs -s db
(or of courseddev logs -f -s db
will show you the logs of the database container (MariaDB logs)ddev ssh
(for the web container) orddev ssh -s db
(for the db container) to actually go in there and look around. The most important logs are in /var/log/ and /var/log/nginx.Note that before ddev v0.18.0 it wasn't easy to view the logs of a stopped container (you needed to use
docker logs ddev-<project>-web
, for example), but in v0.18.0 and forward,ddev logs
works on a stopped container.