Skip to content

Commit 6ff215d

Browse files
committed
Deployment Process / logs
1 parent 27952df commit 6ff215d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

5. Deployment Process.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,43 @@ Ece-tools [\Magento\MagentoCloud\App\Container](https://github.com/magento/ece-t
362362

363363
###### Describe the ways to retrieve logs for phases and its scripts
364364

365+
**Build logs**
366+
367+
Logs from the build hook are redirected to the output stream of git push.
368+
369+
`var/log/cloud.log` file inside the Magento application root directory, compiles build, deploy, post-deploy actions into one file.
370+
371+
**Deploy logs**
372+
373+
`var/log/cloud.log` file inside the Magento application root directory, compiles build, deploy, post-deploy actions into one file.
374+
375+
Logs from the deploy hook are located on the server in the following locations:
376+
- Integration: /var/log/deploy.log
377+
- Staging: /var/log/platform/<project ID>_stg/deploy.log
378+
- Production: /var/log/platform/<project ID>/deploy.log
379+
380+
**Post Deploy logs**
381+
382+
`var/log/cloud.log` file inside the Magento application root directory, compiles build, deploy, post-deploy actions into one file.
383+
384+
Logs from the post-deploy hook are located on the server in the following locations:
385+
- Integration: /var/log/post-deploy.log
386+
- Staging: /var/log/platform/<project ID>_stg/post_deploy.log
387+
- Production: /var/log/platform/<project ID>/post_deploy.log
388+
389+
390+
> Note1:
391+
> `var/log/cloud.log` logs on the Staging and Production environments are only available on the first node in the cluster.
392+
393+
> Note2:
394+
> Logs in the /var/log/ directory are not shared between nodes of the enterprise server cluster;
395+
> each server has its own log. We recommend checking logs on every node for complete reporting.
396+
397+
365398
#### 5.2 Demonstrate the ability to create Magento Cloud script configurations
366399

367400
Documentation:
368401
- [Deployment process](https://devdocs.magento.com/guides/v2.3/cloud/reference/discover-deploy.html#cloud-deploy-over-phases)
369402
- [Build and deploy / platform.sh](https://docs.platform.sh/configuration/app/build.html#build-hook)
403+
- [View logs for troubleshooting](https://devdocs.magento.com/guides/v2.3/cloud/trouble/environments-logs.html)
404+
- [Log locations (directories) for Pro plan: Integration, Staging, Production](https://support.magento.com/hc/en-us/articles/360000318834-Log-locations-directories-for-Pro-plan-Integration-Staging-Production)

0 commit comments

Comments
 (0)