Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Steps to work with Payload CMS

default discord avatar
agolovan2 years ago
2

The question is what are correct steps that most people are working with Payload CMS. As I understand, you do your development process locally. When you are changing collection in typescript, nodemon restartd local server and you see you changes on left nav menu, you see you new collection and etc. When you finish your local work - you updated and tested all your collections in typescript - you committed your changes to version control.



Production server is running by yarn serve, so you update collections (ts) at production, rebuild production, run yarn serve at production and it is ready to enter data.


note: production does not have nodemon, so server should be restarted there to see all recent changes.



Is that correct process?

  • discord user avatar
    jarrod_not_jared
    2 years ago

    Yeah that is the gist, you can use a process manager on your server, like PM2 - just an easier way to manage the start/stop/restart of processes (i.e. yarn serve)

  • default discord avatar
    agolovan2 years ago

    thank you

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.