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.

Unable to deploy 'blank/new' npx create-payload-app to Payload Cloud

default discord avatar
oldmanpewpewlast year
10

Appears i'm having the same? issue as the post from RankedDev28



I created a new blank payload app. Runs locally great.



I have DATABASE_URI, PAYLOAD_SECRET, and also MONGODB_URI (even though the code only looks for DATABASE_URI, the error on payloadcms.com/cloud says to check MONGODB_URI for some reason -- payload.config.ts looks for DATABASE_URI).



The logs appears/disappear too quickly on the webapp to read what the issue may be.



ProjectID is: 654bba80a24033b20bf32a26

  • discord user avatar
    denolfe
    last year

    I can look into this today

  • default discord avatar
    oldmanpewpewlast year

    I just saw it flash in the logs that yarn was missing (we don't use yarn)



    so I did a quick npm install --save-dev yarn



    trying that

  • discord user avatar
    denolfe
    last year

    Likely just a build issue, I will look shortly

  • default discord avatar
    oldmanpewpewlast year

    I also saw:

    │ ---> Downloading and extracting Node v16.20.2

    and thought node v16 was beyond EOL (even for security updates). Just thought i'd mention



    heh -- well, it definitely got farther I think today -- but still fails to deploy and there is no way to view the logs (they vanish from the UI)

  • discord user avatar
    denolfe
    last year

    Your run script is set to

    npm run start

    , but you likely do not have a script named that. It is likely

    serve

    that needs to be run if you used the blank template.



    I'd check that first.

  • default discord avatar
    oldmanpewpewlast year

    Trying that thanks. This part of the UI on payloadcms.com -^ just vanishes when the build fails heh. So it makes it hard to know where to look 🙂

  • discord user avatar
    denolfe
    last year

    Re: Node.js version. This should be defaulting to Node 20 unless you've specified a version in your package.json. I can look into this.

  • default discord avatar
    oldmanpewpewlast year

    I didn't edit the package.json that npx create-payload-app at all.



    So no specified node version, and no yarn (which causes it also to fail).



    so seems like possibly a few things:


    1. npx create-payload-app needs some tweaking


    2. The 'default settings' for payloadcms.com for a imported project should possibly? do npm run serve vs npm run start (I hadn't edited those either)


    3. The error message on payloadcms.com indicates MONGODB_URI needs to be set possibly, when i'm pretty sure the code (again from npx create-payload-app for a blank template) has DATABASE_URI in it.



    it has deployed and is live! 🙂

  • discord user avatar
    denolfe
    last year

    All of these things noted. Thank you for the feedback 👍

  • default discord avatar
    oldmanpewpewlast year

    excited to kick tires on this. thanks for your help!

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.