A based ssh upload package
Install with npm
npm install --dev @kaffee/lungo
Install with yarn
yarn add --dev @kaffee/lungo
Install with pnpm
pnpm add -D @kaffee/lungo
Examples Config
{
"production": {
"serverDir": "/home/nginx/web/dev",
"host": "192.168.1.1",
"port": 22,
"username": "username",
"password": "password",
"project": "kaffee-lungo",
"dist":"dist",
"forward":{
"host": "192.168.1.2",
"port": 22,
"username": "username",
"password": "password",
}
}
}
Example command
yarn lungo --env production
npx lungo --env production
pnpm lungo --env production
The config upload your dist folder to serverDir + project
