node package manager


Continuous deployment with a HTTP host router, based on Bouncy/Fleet/Seaport by @substack

Continuous deployment with a HTTP host router, basically a wrapper for Bouncy/Fleet/Seaport by @substack. Currently doesn't support one of the best features of fleet/propagit - multiple drones.

Make sure ports 5000, 7000, 7001 are open.
[sudo] npm install -g flotilla
[sudo] flotilla

Local machine - install fleet by @substack:

[sudo] npm install -g fleet

Add a new remote to a git repo (use the app.js example, switch SERVER_IP for yours):
fleet remote add default --hub=SERVER_IP:7000 --secret=beepboop

fleet deploy

Spawn a process:
fleet spawn -- node app.js

Test (switch SERVER_IP for yours):
curl -H SERVER_IP:5000

You can find more fleet commands here.

var seaport = require('seaport');
var ports = seaport.connect('localhost', 6000); // fleeted starts seaport on port 6000 
var http = require('http');
var server = http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World');
ports.service('', function (port, ready) { // use the domain name you want to deploy, will have to be pointed at your server 
  server.listen(port, ready);