Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
fix doc, fixed #103
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse committed Dec 18, 2013
1 parent b346139 commit bda6fa7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 6 additions & 1 deletion docs/web/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ module.exports = {
bucket: "foobucket",
domain: "http://foobucket.u.qiniudn.com"
},
nfs: null, // you can set a nfs to replace qiniu cdn
enablePrivate: true, // enable private mode, only admin can publish, other use just can sync package from source npm
admins: {
admin: true,
admin: 'admin@cnpmjs.org',
},
syncModel: 'exist', //`all` sync all packages, `exist` only update exist packages, `none` do nothing
};
```

Expand All @@ -62,6 +64,9 @@ mysql> use cnpmjs;
mysql> source docs/db.sql
```

## Use your own CDN
If you wan to use your own CDN instead of qiniu. Just look at `common/qnfs.js` and implement the interface like it, then pass it by set `config.nfs`.

## npm install

```bash
Expand Down
7 changes: 5 additions & 2 deletions docs/web/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,14 @@ $(function () {
alias it:

```bash
alias cnpm="npm --registry=http://registry.cnpmjs.org --cache=$HOME/.npm/.cache/cnpm"
alias cnpm="npm --registry=http://registry.cnpmjs.org \
--cache=$HOME/.npm/.cache/cnpm \
--userconfig=$HOME/.cnpmrc"

#Or alias it in .bashrc or .zshrc
$ echo '\n#alias for cnpm\nalias cnpm="npm --registry=http://registry.cnpmjs.org \
--cache=$HOME/.npm/.cache/cnpm"' >> ~/.zshrc && source ~/.zshrc
--cache=$HOME/.npm/.cache/cnpm \
--userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc
```

Or you can just use our `cnpm` cli:
Expand Down

1 comment on commit bda6fa7

@alsotang
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis 的配置文件也可以改改

Please sign in to comment.