vue-cli-plugin-otodev-ssh-deployer
v1.0.8
Published
Deploy to server via SSH
Downloads
21
Readme
VUEJS PLUGIN - SSH DEPLOYER
To add your plugin to a project created with Vue CLI run:
vue add vue-cli-plugin-otodev-ssh-deployer
sample vue.config.js
plugin configuration
pluginOptions: {
ssh: {
projectName: 'projectName',
localPath: 'dist',
servers : {
default: [
{
name : process.env.VUE_APP_SSH_DEFAULT_NAME,
host : process.env.VUE_APP_SSH_DEFAULT_HOST,
port : process.env.VUE_APP_SSH_DEFAULT_PORT,
username : process.env.VUE_APP_SSH_DEFAULT_USERNAME,
password : process.env.VUE_APP_SSH_DEFAULT_PASSWORD,
remotePath: process.env.VUE_APP_SSH_DEFAULT_REMOTE_PATH,
}
],
production: [
{
name : process.env.VUE_APP_SSH_PRODUCTION_NAME,
host : process.env.VUE_APP_SSH_PRODUCTION_HOST,
port : process.env.VUE_APP_SSH_PRODUCTION_PORT,
username : process.env.VUE_APP_SSH_PRODUCTION_USERNAME,
password : process.env.VUE_APP_SSH_PRODUCTION_PASSWORD,
remotePath: process.env.VUE_APP_SSH_PRODUCTION_REMOTE_PATH,
}
],
staging : [
{
name : process.env.VUE_APP_SSH_STAGING_NAME,
host : process.env.VUE_APP_SSH_STAGING_HOST,
port : process.env.VUE_APP_SSH_STAGING_PORT,
username : process.env.VUE_APP_SSH_STAGING_USERNAME,
password : process.env.VUE_APP_SSH_STAGING_PASSWORD,
remotePath: process.env.VUE_APP_SSH_STAGING_REMOTE_PATH,
}
]
},
}
}