System Information
-
Strapi Version: 4.11.1
-
Operating System: Debian
-
Database: Sqlite
-
Node Version: 16.14.2
-
NPM Version:
-
Yarn Version: 1.22.19
Hey all,
I’m trying to deploy a Strapi app to Render, and I keep getting this error message The upload folder (/data/public/uploads) doesn't exist or is not accessible
and I have created this directory with a .gitkeep in it and deployed but it’s still not being found.
Set up for this is in/config/env/production/server.js (see below)
module.exports = ({ env }) => ({
url: env("RENDER_EXTERNAL_URL"),
dirs: {
public: "/data/public"
},
});
and help would be very welcomed,
P
I’m not familiar with Render sorry, but I could try to help you:
- Have you confirmed the folder exists on the server? It looks like you have.
- Is the folder writable, have you opened permissions to allow files to be uploaded to this directory?
Also, looking at an example project for a render.com Strapi installation (https://github.com/render-examples/strapi-sqlite/blob/master/render.yaml), you may need to setup rsync
to synchronise your data between the current instance (where your Strapi is running) to a mounted data directory (/data
). See line #7 in that previous example. If you don’t do this, you’ll lose the data created on the current instance.