Merge pull request #666 from Athanasius/enhancement/readme-mention-npm-run-build

README: Call out `npm run build` alternative in developer instructions
This commit is contained in:
Felix Linker
2021-08-04 10:37:42 +02:00
committed by GitHub

View File

@@ -30,3 +30,19 @@ You will then have a development server running on `localhost:3300`.
### Ship and Module Database
See the [Data wiki](https://github.com/cmmcleod/coriolis-data/wiki) for details on structure, etc.
## Deployment
Follow the steps for [Development](#development) as above, but instead
of `npm start` you'll want to:
```sh
> npm run build
```
this will result in a `build/` directory being created containing all the necessary files.
After this you need to serve the files in some manner.
Either configure your webserver to make the actual `build/` directory
visible on the web, or alternatively copy it to somewhere to serve it
from.