Skip to content

Commit 874988c

Browse files
author
Tim Perry
committed
Set up a startui task, and update the UI-only setup docs to explain this
1 parent 7468320 commit 874988c

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +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-
npm install -g ember-cli
22-
ember server --proxy https://staging-crates-io.herokuapp.com
21+
npm run startui
2322
```
2423

2524
This will give you a local server to browse while using the staging backend
26-
(hosten on heroku). You can also specify the proxy as `https://crates.io/`, but
27-
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.
2834

2935
## Working on the backend
3036

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)