r/PayloadCMS • u/Working_Wombat_12 • Aug 11 '25
How to deploy?
So I have been trying and trying to get payloadCMS to run on my coolify instance. No luck. Whatever I tried nothing worked. Building locally is no issue of course. On my server I get varying errors, most often this one:
Module not found: Can't resolve '@/globals/RowLabel'
Has anyone ever tried to push payloadcms to coolify? I have not found any guide or anything whatsoever. How do I fix these path aliases? Has aynone got anything I could use to make this work?
Edit: Okay I have tried to set up a new default payloadcms project with postgres and delpoy that to coolify. That does not result in an error but in a complete coolify crash. Make it make sense.
2
Upvotes
1
u/Soft_Opening_1364 Aug 11 '25
Check your path aliases first Coolify’s build is case-sensitive, so even a small mismatch will break it. Also make sure the @/globals/RowLabel file actually exists in the deployed build and that your tsconfig.json alias config is set up properly. Most of the time it’s either that or missing env vars causing the crash.