mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
README: Make a 'Deployment' section and move instructions there.
This commit is contained in:
20
README.md
20
README.md
@@ -27,10 +27,22 @@ To get a local instance of coriolis running, perform the following steps in a sh
|
||||
|
||||
You will then have a development server running on `localhost:3300`.
|
||||
|
||||
Alternatively, instead of `npm start` you can run `npm run build`
|
||||
after the `npm install` step and then enable web server access to the
|
||||
`build/` directory, or copy it somewhere that is served.
|
||||
|
||||
### 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.
|
||||
|
||||
Reference in New Issue
Block a user