#
MedusaJS Hosting Reference Guide
Our TurboStack is equiped to handle your optimized MedusaJS application!
We maintain the server and infrastructure, but MedusaJS configuration, themes, plugins, and customizations are your responsibility.
This guide will inform you about the filestructure, permissions, caching and more, of your MedusaJS application.
#
File Structure
The following table shows the directory structure of a MedusaJS application:
#
Permissions
MedusaJS requires correct file permissions to operate securely and reliably:
find ~/<Project>/<Shopname> -type f -exec chmod 644 {} \;
find ~/<Project>/<Shopname> -type d -exec chmod 755 {} \;
chown -R $USER:$USER ~/<Project>/<Shopname>
Note: Replace
<Project>and<Shopname>with your actual project and shop name.
#
Caching
#
Configuring Redis
You can find our documentation on how to set up Redis here
#
Varnish
The MedusaJS dashboard does not need any caching. We do recommend adding varnish to your storefront.
You can enable Varnish in our TurboStack GUI by adding the following line to the YAML configuration, for the vhost where your frontend resides.
varnish_enabled: true
#
Clearing the cache
To clear the caches, run the following commands:
tscli varnish clear
tscli redis clear