Answers
Here are the answers to this chapter’s questions:
- Possible answers:
- Volume-mount your source code in the container
- Use a tool that automatically restarts the app running inside the container when code changes are detected
- Configure your container for remote debugging
- You can mount the folder containing the source code on your host in the container.
- If you cannot cover certain scenarios easily with unit or integration tests and if the observed behavior of the application cannot be reproduced when the application runs on the host. Another scenario is a situation where you cannot run the application on the host directly due to a lack of the necessary language or framework.
- Once an application is running in production, we cannot easily gain access to it as developers. If the application shows unexpected behavior or even crashes, logs are often the only source of information we have to help us reproduce the situation and pinpoint the root cause of the bug...