Milos Knezevic
Articles
-
Use the latest npm version
In your .upsun/config.yaml file, set the npm version to latest as follows:dependencies: nodejs: npm: latestReferences Upsun: JavaScript/Node.js Upsun: Manage Node.js versions
-
Set up a WebSocket route
To use the WebSocket protocol on a route, cache must be disabled because WebSocket is incompatible with buffering, which is a requirement for the router caching."https://{default}/ws": type: up...
-
How to get drush to use the correct URL?
Q: When I run drush status on production, it shows the generated URL instead of my.domain.com This means that links in emails generated by the system during crons and other tasks like sitemap gene...
-
When does a variable require JSON formatting?
QuestionWhen providing environment variables, you have the option to provide JSON formatted values. What would be the deciding factor to create a JSON formatted variable? AnswerJSON formatted varia...
-
Installing WP Rocket (WordPress)
Assumptions: You already have a working site deployed on Upsun Your public/root directory is named wordpress Your wp-content directory is located at wordpress/wp-content You're using a Composer-b...
-
Java Memory commands
Java Heap space is used by the Java runtime to allocate memory to Objects and JRE classes. Whenever we create an object, it’s always created in the heap space. This post, we’ll explain to how to se...
-
How can I get information on the various Upsun regions?
For example, which ones are available, where are they, what IaaS infrastructure do they run on? You can use the Upsun API: upsun api:curl regions | jq '.regions[] | select(.available) | .id + ": "...
-
Deployment Issue: "Read-only file system: '/app/.global'"
The deploy hook is run after the app container has been started but before it has started accepting requests. Note that the deploy hook only runs on web instances, not worker instances.You can acce...
-
Failing deployment as environment is inactive
there are two kinds of environments: active and inactive when you push code to production (main/master) it will automatically become an active environment with a generated URL every branch you cre...
-
How to access Solr credentials on Upsun
GoalAccess credentials for Solr from within an Upsun application using Python.Assumptions an active Upsun project properly configured .upsun/config.yaml for the given service SSH key configured on...