Created by rbsmidt on 5/22/2023 in #✋|help
Strapi: Exclude upload dir when deploying from github
I'm new to railway and recently setup a project with Strapi and a Postgres db. All works very well. My project is small and not much media needed, why i haven't setup cloudinary or similiar for media handling. However when deploying from github, images from media upload dir added through admin dashboard gets deleted. Any way i can customize the build steps to not copy contents of the upload dir? Or can this be controlled by putting uploads in gitignore?
11 replies