Deploy Payload on Coolify | How to host Payload
ฝัง
- เผยแพร่เมื่อ 10 มิ.ย. 2024
- How to setup coolify and deploy your Payload Projects with it.
We'll go over why you want to use coolify in the first place, setting up your own VPS on hetzner, installing coolify, adding Domains and SSL Certificates, then deploy our own projects on it
Check out Coolify:
coolify.io/
Payload CMS:
payloadcms.com/
Any constructive feedback is highly appreciated. If you have any questions, need help with the implementation, or would like to suggest a topic for a new video, feel free to let us know in the comments below! - วิทยาศาสตร์และเทคโนโลยี
Great walkthrough!! Looking forward to the upcoming advanced videos.
So glad i found this channel
Can wait for the next one 😊
Very interesting, thank you. I didn't know such a tool existed.
awesome! very interrested on the more advanced videos
10:42 Just a tipp, on that screen you can actually click on the "Advanced" button and force visit the site, then from there install SSL.
awesome, right in time
Yeah. Coming from railway?😂
I'm very interested in the advanced methond load balances
Awesome video, for the next one it would be great if you mention how to deal with serverless stuff in the vps as well as ISR.
Thanks mate! What do you mean exactly with serverless stuff? :)
For example, the typical serverless functions you can host on vercel but using coolify or some other PaaS that basically runs nodejs on the backend.
Amazing
Where did you get the environment variable to post in developer view in Coolify for deploying Payloadcms? Thank you
hi i am facing issue
#13 20.62 src/access/admins.ts(4,28): error TS2307: Cannot find module 'payload/generated-types' or its corresponding type declarations.
can you help me
Can you make a video where u add Payload to an existing NextJS app or upgrade 2.0 to 3.0?
Good idea! Added it to our list
Soon I'll be reaching the stage where I'll need to go to production and still haven't figured things out. This is slightly off-topic, but I'm in the Czech Republic and I was thinking to use Digital Ocean, but now I see that Hetzner might be the better and way cheaper option. Any advice on which one I should pick? 🙏
Honestly, choose the one you're most comfortable with. We prefer hetzner because it's known to be very affordable, and it's a German company (GDPR Compliance). On the other hand I've heard gread things about DO as well. E.g. one thing that Hetzner does not have at the moment is S3 storage, so if you want everything on one provider, you might want to go with DO
Jestli jsi v česku, tak se storpo podívej na forpsi, maj mnohem levnější řešení než digital ocean.
cool
What is the cost of deploying a payload app on something like AWS or Vercel? I am going to try deploying version 3 on AWS with SST but if you have any echo of someone having success with it I am curious too.
Well you can deploy Payload V3 on vercel for free, if you stay within the hobby plan boundaries (See e.g. our V3 walkthrough video for deploy instructions). Works great for lighter applications + you can use vercel blob storage for files, and vercel postgres as a database. Coolify comes in when you have a heavier app that needs more server power, or you want to be independent from Platforms like Vercel
Super erklärt wie immer.
Worin unterscheidet sich coolify von Pocketbase?
Wie ist das, wenn man mehrere Projekte auf dem Server installiert hat, z.B. ein Newsletter-System, Monitoring-System, usw., welche durch Subdomains der Öffentlichkeit nicht bekannt sind.
Mich interessiert, ob man das, sofern genügend Festplattenspeicher vorhanden ist, auf einem z.B. 4GB RAM, 4 vCPU Server laufen lassen kann. Das müsste doch funktionieren, da diese kaum Traffic haben und nur vom Admin aufgerufen werden, oder?
Wäre interessant was die Best-Practise für eine Server-Architektur ist.
Vielen Dank schon mal vorab.
Also Coolify und Pocketbase sind komplett unterschiedliche Dinge, oder meinst du Payload und Pocketbase?
Abgesehen davon, sollte möglich sein. Kommt vollständig auf den Traffic an und wie komplex die einzelnen operations sind. Ich würde es einfach testen, bei Hetzner kann man z.B. ziemlich einfach skalieren, heißt wenn der Server zu schwach für den Usecase ist, einfach eine Stufe höher gehen
Coolify ist vergleichbar mit cPanel oder Plesk.
If I want to deploy an e-commerce template, which path should I choose in healthchecks? Thank you for answer in advance.
Hey! As long as there's a page on the index route ('/'), you could leave the health check as it is. If you want to check if the admin panel is reachable, i'd suggest using the ('/admin') path just like in the video. Shouldn't matter too much though :)
@@AllAboutPayload
Thank you very much. I appreciate your help.
Hi bro, I tried to deploy ecommerce template and i am getting healthy check error
/bin/bash: -c: option requires an argument
How can i fix it ? Thank you.
hmm, does it work if you do npm run build + npm start on your local machine?
@@AllAboutPayload yes on local machine everything work fine
@@AllAboutPayload I have also tried disable healthy check, but then my app status is restarting(unhealthy)
Same for me :(
@AgressiveChessPlayer I'm also getting this error, did you find a way to fix it? Thanks.
Edit: found a fix on the Coolify discord (this seems to affect all Node apps) - the package.json needs a 'start' script adding (I copied the 'serve' script and called it 'start'), then it works!
I got error trying to deploy payload:
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1
[2024-Jun-29 18:54:17.550351] Oops something is not okay, are you okay? 😢
[2024-Jun-29 18:54:17.552402] #0 building with "default" instance using docker driver
Any tips?