Skip to content

davicostalf/frontend

Repository files navigation

title description tags
Astro
The basics example astro app, utilizing `serve` to serve the built app
astro
serve

Astro Basic

This is a the astro basic example that uses serve

Deploy on Railway

✨ Features

  • Astro basic example
  • Serve

💁‍♀️ How to use

  • Install required dependencies with npm install

  • Start the server for development npm run dev

    (The original start command has been more appropriately renamed to dev)

❓ Why use serve

By default Railway will use the start script defined in package.json to run your app, the problem with that for the default basic example project is that the start script starts a development server not fit to run on railway, for reasons such as:

  • Starts a file watching development server that's resource intensive
  • Has a tendency for ram to get out of hand (>600mb)
  • Doesn't listen on the railway provided PORT variable
  • Not as stable or performant as serve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published