eazy-deploy

deploying projects to production or test servers never been such eazy...

Usage no npm install needed!

<script type="module">
  import eazyDeploy from 'https://cdn.skypack.dev/eazy-deploy';
</script>

README

EASY_DEPLOY

Deploying node.js server is the main goal of this package.

CLI can be use from anywhere just install it via npm i @fl45h97/eazy-deploy -g, after that you can call the cli `eazydeploy --gitskip --lintskip --config=easydeploy.config.js

example config file:

module.exports = {
  sshOptions: {
    host: "localhost",
    username: "nodeuser",
    password: "",
    port: 21,
  },
  remoteCommands: [
    {
      cmd: "npm run linux-deploy",
      parameters: [],
      cwd: "/src/example-srv/",
    },
  ],
};

please note, that sshOptions object is passed to ssh.connect() so all of the valid options available in node-ssh can be used. e.g.: you can use privateKey key as well.

module.exports = {
  sshOptions: {
    ...
    privateKey: '/home/user/.ssh/id_rsa'
  }
}