haibu-repo

0.0.12 • Public • Published

haibu-repo

Package.json settings

Haibu uses a package.json format extension in order to determine what to deploy. Also, haibu is a pull based server; this means that it will pull files from outside of the server in order to deploy instead of using uploading directly into the process.

Name

The name attribute is required and will represent the name of the application being deployed.

{
  "name": "app-name"
}

User

The user attribute is required and will represent the user who started up a drone.

{
  "user": "myusername"
}

Repositories

git

This type of repository will pull a git repository into haibu and deploy its contents.

{
  "repository": {
    "type": "git",
    "url": "http://path/to/git/server"
  }
}

local

This type of repository will pull a directory relative to the haibu and deploy its contents.

{
  "repository": {
    "type": "local",
    "directory": "/path/to/application"
  }
}

tar

This type of repository will pull a remote archive relative to the haibu and deploy its contents.

{
  "repository": {
    "type": "tar",
    "url": "http://path/to/archive.tar"
  }
}

zip

This type of repository will pull a remote archive relative to the haibu and deploy its contents.

{
  "repository": {
    "type": "zip",
    "url": "http://path/to/archive.zip"
  }
}

npm

This type of repository will install a npm package as application. The package will be available as directory under its name and the scripts will be installed in the .bin directory. So scripts.start should have one of both as relative directory:

"scripts"{
  "start": ".bin/server.js"
}

or:

"scripts"{
  "start": "name of npm package/server.js"
}
{
  "repository": {
    "type": "npm",
    "package": "name of npm package"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i haibu-repo

Weekly Downloads

15

Version

0.0.12

License

none

Last publish

Collaborators

  • flybyme