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

kosmtik-deploy

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kosmtik-deploy

Deploy your local Kosmtik project on a remote server

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

# Kosmtik-deploy

Deploy your Kosmtik project on a remote server. Only SSH supported for now.

Experimental, not suited for production use.

## Install

While in your kosmtik root, type:

node index.js plugins --install kosmtik-deploy

## Usage

Only command line for now. Eg.:

node index.js deploy ~/Code/maps/transilien/project.yml

Get details about the available options with:

node index.js deploy -h

All the options can also be set in your project config file (.mml/.yml), using the deploy key. For example:

{
    "protocol": "ssh",  // optional, as it's the default (and only one supported)
    "username": "foo",
    "password": "123456",
    "root": "xxx/yyyy/zzz",  // remote root where to scp your project
    "ignore": ['this/dir', 'this/file.txt']  // paths to be ignored, can be regex
}

If you are using public key based authentication, you can use one those option:

  • you are on a Unix system and your private key is ~/.ssh/id_rsa: do nothing, it will be automatic
  • add a privateKeyPath key with the path to your private key
  • add a privateKey key with your SSH private key content

SSH is managed under the hood by the ssh2 module, so you may have a look there to get more details about the available options (you can use all of those in your project.yml deploy key).

Also, remember that you can use your local config file to manage project config information your don't want to visible in the versionned project.yml/.mml file.

Here is an example of a localconfig.js file:

exports.LocalConfig = function (localizer, project) {
    project.mml.compareUrl = 'http://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png';
    localizer.where('Layer').if({'Datasource.type': 'postgis'}).then({
        'Datasource.dbname': 'idf',
        'Datasource.password': '',
        'Datasource.user': 'ybon',
        'Datasource.host': ''
    });
    project.mml.deploy = {
        host: 'xxxx.kimsufi.com',
        root: 'maps/transilien'
    };
};

Keywords

FAQs

Package last updated on 09 Nov 2014

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