Milos Knezevic
Articles
-
Fixing npm ERR! Exit status 137 during deployments
If your deployment fails during the build phase with an Exit status 137 (or Killed error Command failed with exit code 137 if using Yarn), it indicates that your build process has run out of memor...
-
Why does my deploy log say `No composer.lock file present` when I really do have a `composer.lock`?
I’m deploying a Drupal 8 or 9 site, and although things seem to work OK, my deploy log contains the confusing message:Changed current directory to /app/.global/composer/composer W: No composer....
-
Do redirects in `routes.yaml` file also show up in `PLATFORM_ROUTES`?
Is this even possible if I have many (thousands) of redirects since they would be stored in an environment variable?Yes, redirect routes still show in in the PLATFORM_ROUTES environment variable. T...
-
How to Migrate a Java Application to Upsun
Migrating a Java application (such as Spring Boot, Quarkus, or a standard Maven/Gradle project) to Upsun is straightforward. Instead of dealing with infrastructure provisioning, you define your ap...
-
How to use FTP to upload files
Upsun supports sftp, but the following limitations apply: You can only create sftp accounts with an existing Upsun user and an SSH key. Custom users and passwords aren’t supported. sftp access ...
-
How to install Pyodbc and connect to MS SQL (FreeTDS & unixODBC)
When deploying a Python application (such as Django) that needs to connect to a Microsoft SQL Server database, you typically use the pyodbc library. However, pyodbc requires underlying OS-level de...
-
How to forward logs to a Splunk Indexer
You can forward your Upsun application and service logs directly to Splunk without installing any custom agents or modifying your container's file system. Upsun features a native log forwarding in...
-
How to back up environment variables
IntroductionYou always need to store some sensitive data for your application to work. But you should never store them in your git repository. For this, you can use environment variables to define ...
-
Using the Fastly CDN with WordPress
If you are utilizing a Fastly CDN in conjunction with your Platform.sh project that employs WordPress, the Fastly team has developed a WordPress plugin that facilitates the integration of your appl...
-
GitHub Integration
GitHub can be integrated as the source of truth for your code and allows you to keep your existing GitHub workflows.Features Creating a new Platform.sh environment when a branch is created or a pul...