#Best place to deploy payloadcms?

17 messages · Page 1 of 1 (latest)

safe root
#

I know there are lots of ways to deploy it, but I wanted to know you guys favorite options, I didn't want to use aws EC3 mostly because I think for what I have it is too much

I love how vercel or amplify works while deploying apps and how it connects to github actions, do you know if there is something similar that you can deploy payloadcms that is as easy as that ?

stiff glade
#

This is marked as roadmap priority 1 and is being actively developed. I've deployed on Digital Ocean dozens of times, which works well but requires all the manual setup. We have some helpful tutorials for this listed in our docs here: https://payloadcms.com/docs/production/deployment#digitalocean-tutorials. You can also leverage Docker if you're doing this often or want to make standardize things, more on that here: https://payloadcms.com/docs/production/deployment#docker

Payload CMS

When your Payload based app is ready, tested, looking great, it is time to deploy. Learn how to deploy your app and what to consider before deployment.

hushed vigil
#

I can highly recommend digitalOcean. But instead of spinning up a droplet (as in the documentation) you can simply deploy it as an „App“. Only very little configutration needed, autmatic deploys from your Github repository 🙏

mellow bone
desert saffron
#

for anyone finding this through the search, I'm currently using Railway and this is my setup (I'm using it inside a turborepo but you can replace it with simple yarn build & yarn start if you don’t).

The experience is ok, will definitely go for the upcoming official platform once it's available though

halcyon mural
#

For me the best place is railway, but I also deploy to my vps with coolify and work really well (Better when you need more resources because it's more cheap).

violet copper
late fossil
#

I use Digital Ocean App platform for Payload. To me, it feels very similar to deploying on Vercel (which I use to deploy my frontend)

safe root
#

thank you for your suggestions 🙇‍♂️

wooden fog
crisp karma
halcyon mural
halcyon mural
slender narwhal
idle shale
#

I've deployed to Railway for low demand instances. I've also recently deployed to an Azure App Service which is a little more involved but works well once you figure out all the quirks.

For Azure App Services the main things you'll need are:

  • An Azure Container Registry
  • A DevOps pipeline (to build and publish the dockerfile to the registry)
  • An Azure App Service set to deploy the docker image from the registry

The main "gotcha" I hit was that the Dockerfile needed to have any PAYLOAD_PUBLIC_* environment variables added to it before the build command so that they are compiled in for the admin ui.

I use a PAYLOAD_PUBLIC_* variable to set the serverUrl on the payload config so I can have multiple environments.

alpine swallow