Build on EC2

default discord avatar
5 months ago

How to build a production verion on AWS EC2?

  • default discord avatar
    5 months ago

    Like any other piece of code, have you ever deployed anything on AWS? it would be easier to deploy on ECS/Fargate, assuming you know about Docker.

    There is a 1000s way to deploy code online, start from an Hello World docker project on ECS, you'll see more clearly after that.

  • discord user avatar
    Payload Team
    5 months ago

    Take a look here if you haven't already:

    The TLDR is that you'll need to install dependencies, compile your code, build the payload admin panel, then put it all in one place to run.

    If you're using one of the create-payload-app templates, you should be able to follow the steps in the reference Dockerfile from that link:

    yarn install
    yarn build

    Then copy package.json, node_modules, dist/, and build to your destination

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.