sowing
Explore posts from serversDTDrizzle Team
•Created by sowing on 10/10/2024 in #help
bun documentation
I ended up resolving the issue myself but the documentation on
bun:sqlite
is pretty unclear about the fact that you have to install @libsql/client
to do migrations and specifically it doesn't list that in the installation step. The error message if you don't have it installed also does not specify that installing @libsql/client
will fix the issue and installing better-sqlite3
will not.1 replies
Setting up custom webhooks
This is a bit more of a generic question, but I want to set up a custom webhook to hit my own server when it's deployed. The docs don't really have a ton of information about rolling your own webhook endpoints, is that not an intended use case? If that's not the case, is there somewhere I can find more information about the http requests that the webhooks send than what can be found at https://docs.railway.app/reference/webhooks and https://docs.railway.app/guides/webhooks ?
12 replies
nixpacks can't create a build plan
project id 93688d4f-b1a7-49e5-b5ac-2b1d92a7d6b1
I'm trying to deploy a monolithic full stack app with a go server that serves a static react app. The dockerfile in the root of my directory is set up to build everything the way i want it to deploy so I thought nixpacks would just take that and run it but it's saying it can't generate a build plan. Is it possible this is because I'm using bun to build the react app, or would something else be causing it?
22 replies
Tailwind infinite build loop
TL;DR
I recently migrated my personal website from the tailwind CDN to tailwind proper. In my go code for starting my server, I'm using
exec.Run()
to run tailwind's build process on server startup. All of this is working excellently on my local machine, but when I deploy it to Railway it appears to be launching the server in a loop about every five seconds.
What changed
- I added node as a dependency to my deploy so that npx
could be used for the tailwind cli
- I wrote the following function in order to do the automatic build:
- I'm not actually using the error return from that function, so even if the build fails it shouldn't be causing the server restart (and didn't when I initially deployed it without the node dependency)
- I'm aware that it's silly to ignore that error and I'm going to fix that. But it doesn't explain the problem so I'm leaving it as-is for now
that's really it. I'm not super sure where to start looking for what the problem might be. For now the deployment has been canceled because it's just my personal site and I would rather have it down than run up my compute bill on a bug I don't know how to fix lol. Any suggestions would be greatly appreciated.69 replies
go logging registers as errors
project id: 271ed33d-be6b-40ce-96ba-504a94362dac
howdy y'all. I'm hosting a go app on railway and it's been great but whenever I use go's default logger or charm log, all of my logs show up as errors instead of info. I have tried modifying the default logger's output to ensure it's not printing to standard err but it's still categorizing all of my logging as errors. Just wondering if anyone has any insight as to why this is happening.
48 replies