Viewing logs from your environment
After pushing code to your environment, you can see the results of both hooks. Logs from the build hook are redirected to the output stream
git push, so you can observe them in the terminal or capture them (along with error messages) using the command
git push > build.log 2>&1.
Logs from the deployment hook are located on the server. The location depends on whether it is an integration environment or a staging/production environment.
- Integration environments:
- Staging or production:
The value of
<user> depends on the project ID
and whether the environment is staging or production. For example, if the project ID is
yw18fW0Xjcawe, the staging environment user
yw18fW0Xjcawe_stg and the production environment user is
On a staging
environment for project
yw18fW0Xjcawe, the deploy log is located at
Logs for all deployments that have happened on this environment are appended to this file, so check the timestamps on log entries to verify that you’re seeing the logs that correspond to the deployment that you are interested in.
Log output is highly verbose to allow troubleshooting. For example:
The deploy log contains start and stop messages for each of the two hooks:
Start deploy., and