0.0.5 • Published 11 years ago

stackato-assist v0.0.5

Weekly downloads
22
License
-
Repository
github
Last release
11 years ago

Stackato-Assist

A helper utility for running your app on Stackato

Install

npm install stackato-assist

or add to your package.json dependencies.

Usage

var stackato = require('stackato-assist');

if(stackato.isStackato){

  // Basic App settings
  // ------------------
  // listen port
  stackato.port

  // instance id
  stackato.instance_id

  // application host IP
  stackato.host

  // sudo enabled
  stackato.sudo

  // Registered application URIs
  for(uri in stackato.app.uris){
    console.log(stackato.uris[uri]);
  }

  // User / Groups
  /---------------

  // Users who have access to this app
  for(user in stackato.app.users){
    console.log(stackato.users[user]);
  }

  // Group for this app
  stackato.app.group

  // Database services
  //------------------

  // true / false
  stackato.hasMongoDB
  stackato.hasRedis
  stackato.hasMySQL
  stackato.hasPostgreSQL

  // Persistent Filesystem service
  stackato.hasFileSystem // true/false
  stackato.fileSystemPath // /path/to/fs



}
0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago