TanStackT
TanStack14mo ago
9 replies
dead-brown

How to run code when the server starts up?

Hello I am trying to run my drizzle migrations on server startup and also create a cron to do some simple tasks, but I can't find where to put this code. I have already tried using the nitro experimental tasks feature but couldn't get that to run. I will be running this on Bun in a docker container. Any help is appreciated thanks!
Was this page helpful?