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.

copyfiles command not found on AWS Amplify build

default discord avatar
absolutegravitas2 years ago
7

I know this is only

slightly tangential

to Payload but hoping this group can help. 🙏🏻



As the title says, trying to get payloadcms/template-commerce deployed on AWS Amplify but keep running into an issue where copyfiles isn't found. My mongodb is on Mongo Atlas.



AWS Build Settings


version: 1
frontend:
  phases:
    preBuild:
      commands:
        - yarn install
    build:
      commands:
        - yarn run build
  artifacts:
    # IMPORTANT - Please verify your build output directory
    baseDirectory: /
    files:
      - '**/*'
      - 'dist/**/*'    # Add the 'dist' directory for the server code
      - 'build/**/*'   # Add the 'build' directory for the built admin panel
  cache:
    paths:
      - node_modules/**/*


AWS ENV Variables (not sure if important)



No help for this one?

  • discord user avatar
    seanzubrickas
    last year

    Hey

    @786038871451762720

    I think

    @967118574445547650

    can lend a hand here. He's off today but will be back first thing next week! Appreciate your patience.

  • default discord avatar
    absolutegravitaslast year

    All good I got it working on AWS app runner



    Am into local config now... A properly deployable Dockerfile would be great though... The examples aren't prod ready

  • discord user avatar
    denolfe
    last year
    @786038871451762720

    Glad you were able to get it to work. We're open to making improvements to our shipped Dockerfiles. What feedback do you have?

  • default discord avatar
    scelesterfak3last year

    hello

    @786038871451762720

    , did you sort out the problem in your amplify, i am having the same issue. Could you help me out on configuring my app.

  • default discord avatar
    absolutegravitaslast year

    Let me dig up old repo and config and get back to you

  • default discord avatar
    scelesterfak3last year
    @786038871451762720

    sorry to disturb you, did you manage to find the configs?

  • default discord avatar
    absolutegravitaslast year

    hey havent found the repo that had my amplify config but from what I remember it was relatively straightforward after i learned to install copyfiles and other missing packages as part of the preBuild commands



    as soon as I typed that i found it 🤣



    ymmv as this is very very old -- I gave up and deployed to Payload Cloud

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.