Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

remote program installation and control (work in progress/proof of concept)

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 deps
Octocat-spinner-32 doc
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 HISTORY.md
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 nexus.js
Octocat-spinner-32 package.json
README.md

nexus - remote program installation and control (work in progress/proof of concept)

     _______________________________
    /    ___  ___  _ _  _ _  ___    \
    |   |   || -_||_'_|| | ||_ -|   |
    |   |_|_||___||_,_||___||___|   |
    \_____________________________  / ____       ___
                                  \| / .  \  .-´/   \`-.
                                     \____ \/   \___/   \__
                                          \_`---´___`---´-´
                                           /../..\ /..\..\

build status

  • nexus provides a cli and a server with dnode-interface to install, uninstall, start, stop and observe local and remote programs.
  • you can install a program with git (only) by using the install with a git-url.
  • running programs are monitored with mon.
  • information about running programms is stored in a dirty-database.
  • all the config, logs and programs live in ~/.nexus by default.
  • nexus is still super-alpha (and may change a lot). you may want to checkout fleet which does similiar things differently.

install

  • install node
  • npm install nexus -g

example

install a program locally in ~/.nexus/apps

nexus install https://github.com/visionmedia/express

this will clone the repo into ~/.nexus/cache/<sha1(url)> and checkout the current master into ~/.nexus/apps/express. now we have to install the dependencies since nexus doesnt do anything but git-clone/checkout if there is no nexus.json in the root-directory of the repository.

nexus exec express -- npm install

install another version of the program, the name will be express_1 to avoid name-collision with the other program. now it will fetch/update the local cache of the repository and clone from that to save time:

nexus install https://github.com/visionmedia/express#2.5.11
nexus exec express_1 -- npm install

start the resource-example with in the current master-branch of express:

nexus start express -- node examples/resource/app

start another process with version 2.5.11:

nexus start express_1 -- node -e "require('./examples/resource/app').listen(3001)"

show all locally running processes:

nexus ps

uninstall programs:

nexus rm express express_1

start a nexus server:

nexus server start -p 3840

remotely install a program and start a process, stopall and uninstall:

nexus -h 123.4.5.6 -p 3840 install https://github.com/visionmedia/express foo
nexus -h 123.4.5.6 -p 3840 start foo -- node examples/blog/app
nexus -h 123.4.5.6 -p 3840 ps
nexus -h 123.4.5.6 -p 3840 stopall
nexus -h 123.4.5.6 -p 3840 rm foo

for further information please checkout the cli- and api-docs or take a look at the tests.

cli

nexus [-r <remote>] [-c <path to configFile>] [<command> [<options>]]

commands:

api

var n = require('nexus')()

n.version(cb)

n.config(cb)

n.install(opts, cb)

n.uninstall(opts, cb)

n.ps(opts, cb)

n.start(opts, cb)

n.restart(opts, cb)

n.restartall(cb)

n.reboot(cb)

n.stop(id, cb)

n.stopall(cb)

n.exec(opts, cb)

n.log(opts, cb)

n.server(opts, cb)

n.connect(opts, cb)
Something went wrong with that request. Please try again.