Deploying strapi template

Your issue

I am trying to deploy a strapi from template. But it seems to fail on creating the PostgreSQL, it is just sitting there saying “waiting” for 10 min now. And the overall project says failure.

I didn’t do anything but selecting the template and giving it a name. So I am confused how it is already failing from the get go.

Here is the log from where it fails:

2021-04-30T08:33:45Z DEPLOYMENT_IN_PROGRESS APPLICATION INFO einfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

2021-04-30T08:33:45Z DEPLOYMENT_IN_PROGRESS APPLICATION INFO eerror Couldn’t find a package.json file in “/app”

2021-04-30T08:33:45Z DEPLOYMENT_ERROR ENVIRONMENT WARN


MESSAGE FOR QOVERY TEAM:
    * Execution ID     : 8165e6a72f025ff853536018d8d7dbfd56d4f253a7d800ba56ca5dd7d4536c4673fe00bcba48dc3cb40ab833ef0de9683dc74aafced935ab991c7108e280be70
    * Scope            : Build platform 'qovery-local-docker' with id 'wgxfivfu9f8lomxy'
    * Rollback message : 

❌ ❌ ❌ MESSAGE FOR THE USER ❌ ❌ ❌

    ✉️ Error message : error while building container image qovery-local-docker (wgxfivfu9f8lomxy). Error: SimpleError { kind: Command(ExitStatus(ExitStatus(256))), message: Some("error while executing an internal command") }
    ℹ️ Hint          : It looks like there is something wrong in your Dockerfile. Try run locally using `qovery run` or build with `docker build --no-cache`
    💬 Need help    : Look at the hint message first. If you need more assistance, you can reach the support team on Discord (https://discord.qovery.com) or on the Qovery console (https://console.qovery.com) with the integrated chat.

2021-04-30T08:33:45Z ERROR APPLICATION ERROR The command ‘/bin/sh -c yarn run build’ returned a non-zero code: 1

It looks like something went wrong when Qovery wanted to build your application. Did you initialize Strapi in the repository created with the command npx create-strapi-app my-project --quickstart ?

No, I am 100% just follow Qovery own video on youtube on how to deploy your first app: Deploy your first app with Qovery - YouTube

The video only show how to set the Qovery environment to run the Strapi app. The command I wrote init the source code for the app.

Have you seen the video? I is supposed to do all that via the template.

It won’t do it. You have to init the source code with the command.