Jannik
Jannik
Explore posts from servers
CDCloudflare Developers
Created by Jannik on 10/14/2024 in #general-help
R2 Public bucket and private files
Hey, can i use one bucket where a part of it is public and another one private? or should i use 2 buckets, one private and one public?
2 replies
CDCloudflare Developers
Created by Jannik on 9/16/2024 in #general-help
R2 is stuck in Plan selection
I wrote the support and i havent a reply in over a week. How is that possible?
10 replies
CDCloudflare Developers
Created by Jannik on 9/12/2024 in #general-help
Stuck at R2 Plans page
Hey, when i click add r2 plan to my account i get redirected to the same page over and over again
1 replies
DTDrizzle Team
Created by Jannik on 6/17/2024 in #help
Unable to run migration pgenum
import { pgTable, serial, text, varchar, pgEnum, numeric } from 'drizzle-orm/pg-core';

const roleEnum = pgEnum('role', ['admin', 'user']);
export const users = pgTable('users', {
id: serial('id').primaryKey(),
firstName: varchar('first_name').notNull(),
lastName: varchar('last_name').notNull(),
email: text('email').notNull(),
password: text('password').notNull(),
role: roleEnum('role').notNull()
});
import { pgTable, serial, text, varchar, pgEnum, numeric } from 'drizzle-orm/pg-core';

const roleEnum = pgEnum('role', ['admin', 'user']);
export const users = pgTable('users', {
id: serial('id').primaryKey(),
firstName: varchar('first_name').notNull(),
lastName: varchar('last_name').notNull(),
email: text('email').notNull(),
password: text('password').notNull(),
role: roleEnum('role').notNull()
});
i added a new enum but when i run migrate im getting an error and the migration did not get applied:
Using 'pg' driver for database querying
[⣷] applying migrations...error: type "role" does not exist
at /Users/jannikkoster/Documents/e-commerce/svelte-commerce/node_modules/drizzle-kit/bin.cjs:77696:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at <anonymous> (/Users/jannikkoster/Documents/e-commerce/svelte-commerce/node_modules/src/pg-core/dialect.ts:89:7)
at NodePgSession.transaction (/Users/jannikkoster/Documents/e-commerce/svelte-commerce/node_modules/src/node-postgres/session.ts:155:19)
at PgDialect.migrate (/Users/jannikkoster/Documents/e-commerce/svelte-commerce/node_modules/src/pg-core/dialect.ts:82:3)
at migrate (/Users/jannikkoster/Documents/e-commerce/svelte-commerce/node_modules/src/node-postgres/migrator.ts:10:2) {
length: 91,
Using 'pg' driver for database querying
[⣷] applying migrations...error: type "role" does not exist
at /Users/jannikkoster/Documents/e-commerce/svelte-commerce/node_modules/drizzle-kit/bin.cjs:77696:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at <anonymous> (/Users/jannikkoster/Documents/e-commerce/svelte-commerce/node_modules/src/pg-core/dialect.ts:89:7)
at NodePgSession.transaction (/Users/jannikkoster/Documents/e-commerce/svelte-commerce/node_modules/src/node-postgres/session.ts:155:19)
at PgDialect.migrate (/Users/jannikkoster/Documents/e-commerce/svelte-commerce/node_modules/src/pg-core/dialect.ts:82:3)
at migrate (/Users/jannikkoster/Documents/e-commerce/svelte-commerce/node_modules/src/node-postgres/migrator.ts:10:2) {
length: 91,
1 replies
PPrisma
Created by Jannik on 5/15/2024 in #help-and-questions
Prisma is not using test env file
"test": "cross-env NODE_ENV=test && dotenv -e .env.test -- npx prisma db push && vitest"
"test": "cross-env NODE_ENV=test && dotenv -e .env.test -- npx prisma db push && vitest"
it is creating the following db
DATABASE_URL="./dev.db"
DATABASE_URL="./dev.db"
but it should
DATABASE_URL="./test.db"
DATABASE_URL="./test.db"
2 replies
RRailway
Created by Jannik on 12/31/2023 in #✋|help
How do you handle automatic generation of domains with ssl?
hey, i can create a dummy domain on railway. How can i generate that dynamically? do you have set a wildcard record to you domain and how do u proxy it then?
4 replies
RRailway
Created by Jannik on 10/25/2023 in #✋|help
Point server to a domain and not a subdomain with cname
Can anyone help me how i can do that? i cant enter a cname record in strato for my domain
7 replies
RRailway
Created by Jannik on 9/9/2023 in #✋|help
Deploy angular application
No description
6 replies
RRailway
Created by Jannik on 8/30/2023 in #✋|help
redploy after pushin to github not working anymore
it stopped to redeploy my app
5 replies
RRailway
Created by Jannik on 8/9/2023 in #✋|help
wordpress backup
Hey i am using the wordpress template. How can i make daily backups?
8 replies
RRailway
Created by Jannik on 8/3/2023 in #✋|help
deploy docker-compose file
Hi, how can i deploy a docker-compose file which needs several services like mysql for xample. I want to create a mailcow server on railway. Can someone help me?
5 replies
RRailway
Created by Jannik on 7/28/2023 in #✋|help
Formdata size limit on railway?
Hey i try to upload 100+ images to my s3 bucket with sveltekit. on dev all works fine on my machine but as soon as i deploy to railway i get invalid formdata if i try to upload a lot of them at the same time
9 replies
RRailway
Created by Jannik on 7/27/2023 in #✋|help
.well known error
9 replies
RRailway
Created by Jannik on 7/17/2023 in #✋|help
[Prisma] __dirname is not defined in an ES module scope
Hey i really need help now, i made up another thread a few days ago. I need to have this fix or I need to look for another solution. ID: 86ff3fd0-d69d-4cd4-9582-32459f4ae666 i copied the exact version from your sveltekit-prisma template
12 replies
RRailway
Created by Jannik on 7/15/2023 in #✋|help
DNS Settings for cloudflare for railway
6 replies
RRailway
Created by Jannik on 7/14/2023 in #✋|help
Failed to launch browser process
Im using puppeteer to generate pdf out of html files: Error: Failed to launch the browser process! [0714/143629.108315:ERROR:zygote_host_impl_linux.cc(100)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. TROUBLESHOOTING: https://pptr.dev/troubleshooting but this is my error message. Is there a way to do it on railway?
12 replies
RRailway
Created by Jannik on 7/11/2023 in #✋|help
hey i got a sveltekit starter i wanted to deploy to railway. i changed the adapter to node but it ha
8 replies
RRailway
Created by Jannik on 7/11/2023 in #✋|help
Sveltekit prisma build error
5 replies
RRailway
Created by Jannik on 7/10/2023 in #✋|help
Upload static files to railway service
Hey, how does it gets persisted, or does it not? should i use somethin like a bucket?
71 replies