trogdor
has anyone successfully deployed a node+express server using bun+pm2 on Railway?
i try to write failsafe code as possible, and then build redundancy around services that are super downtime sensitive, leaving very little monitoring or metrics gathering ever needed
25 replies
has anyone successfully deployed a node+express server using bun+pm2 on Railway?
not saying it's bad, ive just never considered using it on railway. webhooks fire on platform events like a service deployment crashing and i handle things from there. railways graphql API is powerful and gives me everything i need.
may still be an unpopular opinion for now but for metrics i lean into OpenTelemetry and hand roll stuff to spit in a database. in the most extreme cases ill view those metrics in a Prometheus, but rarely.
when deploying sentry i used probably 10% of that platforms capabilities for 90% of the things i needed it to do. its great, even indispensable at scale. but if you don't need it, it feels like buying a refrigerator that doesn't fit inside your doorway or something
25 replies
has anyone successfully deployed a node+express server using bun+pm2 on Railway?
healthchecks: https://docs.railway.app/reference/healthchecks
restarts: https://docs.railway.app/guides/healthchecks-and-restarts
cron: https://docs.railway.app/reference/cron-jobs
all of these things are first class features on railway. once you deploy a service, there's a lot you can do if you click on it and go through all the stuff available there.
25 replies
has anyone successfully deployed a node+express server using bun+pm2 on Railway?
at the end of the day it sounds like you have an express app that you want to run on railway. none of the things causing you problems are necessary for that, just build it with node and deploy it normally
25 replies
has anyone successfully deployed a node+express server using bun+pm2 on Railway?
a couple things to consider:
1 . Is your goal to use bun or node? You should pick one. Using different runtimes in development and production is adding an unnecessary layer of complexity that's also very hard to debug. dsespite what they tell you, bun is not a drop-in replacement for node (yet). I recommend sticking to node for now unless you have a practical understanding of what the differences between them are.
2. pm2 is also unnecessary complexity here, there are several other ways to accomplish the same task, the easiest of which is probably using cron and healthcheck features provided by railway for this purpose etc
25 replies
Proxmox deployment and OOM(?) errors
I have been running windmill in both proxmox vm and lxc without a hitch. i have a fair bit of experience in using proxmox for almost a decade but windmill behaves predictably and configuring it in different environments is actually very ergonomic in my experience. most recently i am trying to patch up the last pieces of a railway template for a one click deploy of all 6 pieces of infra etc. @rubenf such a clean experience so far kudos...
27 replies