-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure deployment digital ocean #3167
Comments
did you also configured the s3 storage? MINIO_ENDPOINT |
I created a Spaces Object storage. In the env vars i put in the name. Or should I put in the wholue url https://[NAME].ams3.digitaloceanspaces.com ? I can upload files from the DigitalOcean interface there. But since it's referring also to amazon I am a bit confused. I have not linked an AWS S3 bucket to this. Must I do this to make it work? |
MINIO_ENDPOINT needs to be there, is it? With the https://xxx part indeed because it is the endpoint to connect to. |
This is probably due to the fact that by default, TypeScript types any env var as
|
Directly inserting the minio parameters indeed bypasses this error. However the next obstacle has to do with the database when trying to deploy. Relation administrator does not exist it seems. info 11/3/24, 3:49 PM - [RoutesResolver] HealthController {/health}: lots attempts... [ddshop] [2024-11-03 15:49:23] warn 11/3/24, 3:49 PM - [Vendure Server] Awaiting DB schema creation... (attempt 18) |
I get this also when deploying on railway: 2024-11-03 16:55:43.071 UTC [97] STATEMENT: SELECT "Administrator"."createdAt" AS "Administrator_createdAt", "Administrator"."updatedAt" AS "Administrator_updatedAt", "Administrator"."deletedAt" AS "Administrator_deletedAt", "Administrator"."firstName" AS "Administrator_firstName", "Administrator"."lastName" AS "Administrator_lastName", "Administrator"."emailAddress" AS "Administrator_emailAddress", "Administrator"."id" AS "Administrator_id", "Administrator"."userId" AS "Administrator_userId" FROM "administrator" "Administrator" 2024-11-03 16:55:43.103 UTC [97] ERROR: relation "zone" does not exist at character 1416 |
Followed the steps on: https://docs.vendure.io/guides/deployment/deploy-to-digital-ocean-app-platform/
Error comes from the vendure-worker deployment.
4-10-27 17:39:01] │ -----> Build
[2024-10-27 17:39:01] │ Running build
[2024-10-27 17:39:01] │
[2024-10-27 17:39:01] │ > [email protected] build
[2024-10-27 17:39:01] │ > tsc
[2024-10-27 17:39:01] │
[2024-10-27 17:39:02] │ src/vendure-config.ts(74,21): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
[2024-10-27 17:39:02] │ Type 'undefined' is not assignable to type 'string'.
[2024-10-27 17:39:02] │ src/vendure-config.ts(75,21): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
[2024-10-27 17:39:02] │ Type 'undefined' is not assignable to type 'string'.
[2024-10-27 17:39:02] │
it is referring to the env vars. These were added globally according to the documentation.
The text was updated successfully, but these errors were encountered: