spmjs.io
is the distributed packaging server perfectly matching with spm@3.x. Now it is rewritten in javascript from Yuan(the precursors), and is faster, more powerful and easier to deploy.
$ git clone git://github.com/spmjs/spmjs.io.git --depth=1
$ cd spmjs.io
$ npm install
$ cp config/base.default.yaml config/base.yaml
Modify config/base.yaml
as you need.
Start and stop server by a simple command. (For Unix/Linux)
$ npm start
$ npm stop
Then you have a complete package source server which can interact with spm3.x after add the server address to ~/.spm/spmrc-3x
.
registry = http://127.0.0.1:3000
You can set it via spm config set registry http://your_spm_server.com
.
Also you can use arguments --registry
or -r
for each command.
$ spm install -r http://127.0.0.1:3000
$ spm publish -r http://127.0.0.1:3000
Reindex the packages for elastic search.
$ npm run reindex
Require Java 7 environment : Homebrew/legacy-homebrew#29910
- spm owner [ls|add|rm]