Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.43 KB

README.md

File metadata and controls

64 lines (41 loc) · 1.43 KB

spmjs.io

David Status

spmjs.io is the distributed packaging server perfectly matching with [email protected]. Now it is rewritten in javascript from Yuan(the precursors), and is faster, more powerful and easier to deploy.

Install

$ git clone git://github.com/spmjs/spmjs.io.git --depth=1
$ cd spmjs.io
$ npm install

Config

$ cp config/base.default.yaml config/base.yaml

Modify config/base.yaml as you need.

Deploy

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

elasticsearch

Require Java 7 environment : Homebrew/legacy-homebrew#29910

TODO:

  • spm owner [ls|add|rm]