eazy-deploy
v1.0.0
Published
deploying projects to production or test servers never been such eazy...
Downloads
2
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'
}
}