New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ionos-node-cloud-deploy

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ionos-node-cloud-deploy

Deploy a NodeJS application to your ionos Cloud Server or Webspace.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

ionos-node-cloud-deploy

This modules helps you deploy a NodeJS application to your ionos Cloud Server or Webspace. It expects you to run your Cloud Server with Passenger.

Installation

With npm

npm install ionos-node-cloud-deploy

With yarn

yarn add ionos-node-cloud-deploy

Features

  • Uploading files via sftp
  • Installing dependencies
  • Restarting the Server

Usage/Examples

Cloud Server

  const { CloudServer } = require('ionos-node-cloud-deploy');

  const cloud = new CloudServer({
    host: 'hostname',
    username: 'username',
    password: 'password',
    localDir: __dirname + '/build',
    include: ['*.js', '*.ejs', '*.json', 'public/*']
  });

  cloud.deploy();
ParameterTypeDescription
hoststringRequired. Hostname of the cloud server
usernamestringRequired. SSH username
passwordstringRequired. SSH password
localDirstringRequired. local directory __dirname + '/dist'
remoteDirstringremote directory - default: '/var/www/'
includestring[]files to include - default: ['*', '**/*']
excludestring[]files to exclude - default: ['dist/**/*.map','node_modules/**','node_modules/**/.*','.git/**']

Deploy functions can be executed step by step.

  await cloud.upload();
  await cloud.install();
  await cloud.restart();

Webspace

const { Webspace } = require('ionos-node-cloud-deploy');

const webspace = new Webspace({
  host: DEPLOY_HOSTNAME,
  username: DEPLOY_USERNAME,
  password: DEPLOY_PASSWORD,
  localDir: __dirname + '/dist',
  remoteDir: '/upload'
});

webspace.deploy({ deleteRemote: true });
ParameterTypeDescription
hoststringRequired. Hostname of the cloud server
usernamestringRequired. SSH username
passwordstringRequired. SSH password
localDirstringRequired. local directory __dirname + '/dist'
remoteDirstringremote directory - default: '/'
includestring[]files to include - default: ['*', '**/*', '.*']
excludestring[]files to exclude - default: ['dist/**/*.map','node_modules/**','node_modules/**/.*','.git/**']

Authors

License

MIT

Keywords

ionos

FAQs

Package last updated on 18 Sep 2021

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