Documentation Index
Fetch the complete documentation index at: https://developer.upsun.com/llms.txt
Use this file to discover all available pages before exploring further.
Why is DATABASE_URL not defined during the build hook?
During the build hook, services are not available to avoid breaking the
application that is still live. That is why the Symfony integration does not
expose environment variables during the build hook.
The cache:clear command does not need to connect to the database by default,
except if you are using the Doctrine ORM and the database engine version is not
set in your configuration.
The version information can be set in your .env file or in the
doctrine.yaml configuration file. The only important pieces of information there are
the database engine and the version; everything else will be ignored.
Note that the environment variables are available in the deploy hook.
How can I access my application logs?
To display the application log file (/var/log/app.log file), run the following command:
/var/log/app.log file.
This includes language errors such as PHP errors, warnings, notices,
as well as uncaught exceptions.
The file also contains your application logs if you log on stderr.
Note that Upsun manages the /var/log/app.log file for you.
This is to prevent disks from getting filled and using very fast local drives instead of slower network disks.
Make sure your apps always output their logs to stderr.
If you use Monolog, add the following configuration to your config/packages/prod/monolog.yaml file:
What’s this “Oops! An Error Occurred” message about?
The Oops! An Error Occurred message comes from your app and is automatically generated based on the Symfony error template.The server returned a “500 Internal Server Error”

The server returned a “404 Not Found”
By default, new Symfony apps come without controllers, which means there’s no homepage to show. As a result, when you run your project locally, the following welcome page is displayed:

- Commit all your files.
- Run the
symfony pushcommand and check that the deployment is successful.