Understanding common logs which you may see in your application.
[error]
logs. These can be safely ignored.
.git
directory during runtime in your application. When using Laravel Cloud, the .git
folder is removed during the deploy process, meaning this directory is unavailable at runtime, which can trigger this error for packages that depend on this. For example, having Sentry installed will allow you the option to run git to grab the current commit hash, thus triggering these errors.
If a package depends on your deployment’s git hash being available, you can inject it as an environment variable by adding the following to your build commands:
[truncated due size...]
log is indicating that a log message exceeded a size limit, causing the message to be cut off. This typically happens when logs or error messages are too lengthy. This can be common during your deployment process. To reduce the size of the content printed out for your deploy commands, you can reduce the commands’ verbosity through additional flags:
APP_DEBUG=true
, errors will produce a full stack track which can be truncated.