remote-deployer
A tool to run scripts on a remote server.
Last updated a year ago by niradler55 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install remote-deployer 
SYNC missed versions from official npm registry.

Remote Deployer

Deployer is an npm package to deploy to a remote server.

  • deploy with ssh: connect to the server and run command from a script, good for running from client or build server.
  • deploy with http: create get request with secret key to fire deploy process (preconfigure script run), to set up on the remote server.
  • deploy with ftp: coming soon.

Used by me at devresources, helping me to setup ci/cd with gitlab worker.


Setup

npm i -g remote-deployer

API

  • deployer -h //show help file
  • deployer ssh -h //show sub help file
  • deployer init

Notes

  • to support multi configuration, you need to make sure the default_id key in the config is not set. (you need to run the commands in the project folder)
  • to support running deployer from anywhere but support only one configuration make sure default_id is set.
  • on linux and mac, make sure the script as permission, chmod +x script.sh
  • get config file path: deployer config path
  • print config file: deployer config all
  • try running deployer in the project folder. (deployer will interact with git to save release date/data support ssh only)
  • trigger example for deployer http: curl http://api.site.site:1234/deploy?appKey=bdd110130eg51a5e8ac15b829e336f7710e3ba71
  • read the blog post.

TODO

  • restore to last deployed commit and deploy.
  • ftp deploy

Current Tags

  • 0.3.8                                ...           latest (a year ago)

20 Versions

  • 0.3.8                                ...           a year ago
  • 0.3.7                                ...           a year ago
  • 0.3.6                                ...           a year ago
  • 0.3.5                                ...           a year ago
  • 0.3.4                                ...           a year ago
  • 0.3.3                                ...           a year ago
  • 0.3.2                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.7                                ...           a year ago
  • 0.2.6                                ...           a year ago
  • 0.2.5                                ...           a year ago
  • 0.2.4                                ...           a year ago
  • 0.2.3                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (17)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |