Skip to content
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

how to run drizzle studio in coolify? #572

Open
haocloo opened this issue Sep 19, 2024 · 0 comments
Open

how to run drizzle studio in coolify? #572

haocloo opened this issue Sep 19, 2024 · 0 comments

Comments

@haocloo
Copy link

haocloo commented Sep 19, 2024

so i have 2 aws ec2
1st ec2 -- coollify (at coolify.mydomain.com) that controls 2nd ec2

2nd ec2 -- nextjs using drizzle (at mydomain.com)

this is part of the package.json of nextjs

"db:studio": "drizzle-kit studio --verbose --host mydomain.com --port 3001"

but i get this error

Post-deployment command failed.
$ drizzle-kit studio --verbose --host mydomain.com --port 3001 No config path provided, using default 'drizzle.config.ts'Reading config file '/app/drizzle.config.ts'Using 'pg' driver for database queryingWarning  Drizzle Studio is currently in Beta. If you find anything that is not working as expected or should be improved, feel free to create an issue on GitHub: https://github.com/drizzle-team/drizzle-kit-mirror/issues/new or write to us on Discord: https://discord.gg/WcRKz2FFxNnode:events:495
      throw er; // Unhandled 'error' event
      ^
Error: listen EADDRNOTAVAIL: address not available 2ndec2privateip:3001
    at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
    at __node_internal_uvExceptionWithHostPort (node:internal/errors:593:12)
    at Server.setupListenHandle [as _listen2] (node:net:1800:21)
    at listenInCluster (node:net:1865:12)
    at GetAddrInfoReqWrap.doListen [as callback] (node:net:2014:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8)
    at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:128:17)
Emitted 'error' event on Server instance at:
    at emitErrorNT (node:net:1844:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'EADDRNOTAVAIL',
  errno: -99,
  syscall: 'listen',
  address: '2ndec2privateip',
  port: 3001
}
Node.js v18.20.2error: script "db:studio" exited with code 1

I just want somewhere to access my drizzle studio or like a table viewer something like this https://demo.drizzle.studio/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant