-
Notifications
You must be signed in to change notification settings - Fork 161
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 a fastify server in production #705
Comments
That seems a bit extreme. I would change that script and split the build and start steps. |
4 tasks
Hi I created a PR, please take a look #707 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Issue
Hi,
I have scaffolded my project with :
fastify generate myproject --esm --lang=ts
In my package.json, I have:
start": "npm run build:ts && fastify start -l info dist/app.js",
"build:ts": "tsc",
To run my sever in a production environnement do I need to run
npm run start
?So every time I start the server it will rebuild the ts files ?
Thanks
The text was updated successfully, but these errors were encountered: