Skip to content

Commit 24662f9

Browse files
committed
Merge pull request #87 from pimterry/readme-tweaks
Include global Ember CLI install in setup docs
2 parents 6fdba2a + 874988c commit 24662f9

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,22 @@ Source code for the default registry for Cargo users. Can be found online at
1515

1616
This website is built using [Ember.js](http://emberjs.com/) for the frontend,
1717
which enables tweaking the UI of the site without actually having the server
18-
running locally. To get up and running, just run:
18+
running locally. To get up and running with just the UI, run:
1919

2020
```
21-
ember server --proxy https://staging-crates-io.herokuapp.com
21+
npm run startui
2222
```
2323

2424
This will give you a local server to browse while using the staging backend
25-
(hosten on heroku). You can also specify the proxy as `https://crates.io/`, but
26-
beware that any modifications made are permanent!
25+
(hosted on heroku at https://staging-crates-io.herokuapp.com).
26+
27+
If you'd like to run the server with a specific different backend, you can specify specific arguments to `npm start`. For example you can set the proxy to `https://crates.io/` to use the live instance, but do be aware that any modifications made here will be permanent! To do this, run:
28+
29+
```
30+
npm start -- --proxy https://example.com
31+
```
32+
33+
This requires NPM 2.0.
2734

2835
## Working on the backend
2936

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
},
99
"scripts": {
1010
"start": "ember server",
11+
"startui": "ember server --proxy https://staging-crates-io.herokuapp.com",
1112
"build": "ember build",
1213
"test": "ember test"
1314
},

0 commit comments

Comments
 (0)