Skip to content

Commit f5a0922

Browse files
committed
adding command to locally server app with fastboot server
1 parent 3efdaf2 commit f5a0922

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ To run the website locally:
2828
* `ember build` (development)
2929
* `ember build --environment production` (production)
3030

31+
### Fastboot Express Server
32+
33+
This site is served in production by an express.js application
34+
[fastboot-server](https://github.com/ember-fastboot/fastboot-website/blob/master/fastboot-server.js). To serve the app using the `fastboot-server` use the following command which will
35+
build the app with production `env` and serve the app at [localhost:3000](http://localhost:300)
36+
37+
```sh
38+
npm run server:node
39+
```
40+
3141
### Deploying
3242

33-
Pull requests merged into master are automatically deployed to Heroku via Travis.
43+
Pull requests merged into master are automatically deployed to Heroku.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"lint:hbs": "ember-template-lint .",
1616
"lint:js": "eslint .",
1717
"start": "ember serve",
18-
"test": "ember test"
18+
"test": "ember test",
19+
"server:node": "ember build --prod --output-path='tmp/deploy-dist' && EXPERIMENTAL_RENDER_MODE_SERIALIZE=true node fastboot-server.js"
1920
},
2021
"devDependencies": {
2122
"@ember/jquery": "^0.6.0",

0 commit comments

Comments
 (0)