Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-distribute

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-distribute

continuous deployment of node services

  • 0.5.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-distribute

continuous deployment of node services, make your own vpn ☁️

Npm Version Dependency Status devDependency Status Build Status npm npm

setup

requires redis-cli to be installed locally

  • npm install node-distribute -g
  • node-distribute start // server will now be running

Configuration

how to configure node-distribute two services are started with node-distribute a git server and a http server to host the admin page (admin:1337) and (git server:7000)

  • run node-distribute configure
    • this will log two files, repos and user

repos.json

[
    {
        "subdomain": "test", // test.location:1337
        "name": "test", // the name of the repository
        "type": String (NODE, STATIC) // the type of application
        "anonRead": false, // allow anonymous access
        "users": [ // array of users that are allowed to push to this repository
            {
                "user": {
                    "username": "root",
                    "password": "aaa6c4b09f5650ed2780e6210d785ff2c5223954"
                },
                "permissions": [
                    "R",
                    "W"
                ]
            }
        ]
    }
]
How do I get an app to deploy with no subdomain?

to deploy an app to the root level just simply use the * character in the subdomain field

[
    {
        "subdomain": "*", // location:1337
        ...
    }
]

to push to this repository simply run

git push http://{user}:{password}@localhost:7000/test.git master

user.json

admin account

{
    "username": "root",
    "password": "aaa6c4b09f5650ed2780e6210d785ff2c5223954"
}

additional information

setting a wildcard domain up on localhost (mac)

http://asciithoughts.com/posts/2014/02/23/setting-up-a-wildcard-dns-domain-on-mac-os-x/

updating docs

If you update the docs, please also copy changes to /test/fixtures/main-app

Thank you!

FAQs

Package last updated on 27 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc