Skip to content

How to run a fastify server in production #705

Description

@zoulou00

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions