Giter Site home page Giter Site logo

mothership's People

Contributors

maxrbaldwin avatar

Watchers

 avatar  avatar

mothership's Issues

mothership report

The idea is, if you have mothership installed locally, you can get information from your other motherships running on external servers.

  • set external severs
  • get reports from all in console.
  • get reports from one in console.

command tree

commands: {
start: function(){}
set: {
secret: function(){}
}
}

Add update command

Should power down all apps (async), shutdown mothership, update it, start up mothership (use start command), then all of its apps.

mothership start

  • starts mothership express app with PM2 on port 2328.
  • checks if secret is in storage. console logs if not.

Create express app

  • Has route "/mothership/githook" to catch pushes to github.
  • Moves new git push to apps directory. Checks if old app exists. If it does, stops the app and then replaces it.
  • Validates package.json, looks for "ms" key in package.json, sees if there is an port option. Default port is 80.

catches git push -> clones it -> checks for package.json and "ms" key -> stops old app -> moves old app to temp dir -> puts new app in old app's place -> does npm install -> starts new app -> removes old app.

Move Promises From Start

Create a directory in "cmds" called "promises," maybe in "utils" and breakdown the promises from the launch command into separate files.

Sockets For Local App

Create web sockets for the local app to let to dash know the current state of deployment.

Send ENV values

Need a system for passing env values between ships.

  • Send them from local command line encrypted
  • Deploy them as a file or in a DB
  • Restart app.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.