You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
To start in prod, you have multiple choices, but it all starts with the following command: ng build --prod creates a dist directory that contains all the required files in a prod environment.
Those are static files, you can serve them with a FTP server or, for example, with a Node server (like Express, Koa, ...) as static assets.
In fact, anything that can serve static files can be used to serve the website. nginx is also a common choice.
In our case, we use the file server provided with osrts-backend (more precisely thanks to this line: https://github.com/osrts/osrts-backend/blob/master/src/app.js#L45).
We move all the files generated with ng build prod that are inside the dist folder to a public folder inside osrts-backend. The backend server will automatically serve those files.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ng serve will start the server in development environment but how would i be able to start the server in production environment?
The text was updated successfully, but these errors were encountered: