1.1.6 • Published 2 years ago
vuepub v1.1.6
vuepub
Just a package for quick publish vue3 projects.Your server must start the ssh service.
install
npm i vuepub
Usage
publish to windows
Add the following script to your project's package.json.
"scripts":{
"publish:win": "publish-win --host yourServerIp --username yourWindowsUsername --password yourWindowsPassword --port yourServerSSHPortCanOmittedIfIs22 --origin \"./dist\" --goal \"C:\\test\" "
}
- Fill in the correct parameters in the command.
- Then in your shell, type
npm run publish:win
. - The example shows how to fill in the windows path.
origin
is the directory of your packaged project,goal
is the directory of the remote server you want to deploy.
publish to linux
Similar to publishing to windows.
"scripts":{
"publish:linux": "publish-linux --host yourServerIp --username yourWindowsUsername --password yourWindowsPassword --port yourServerSSHPortCanOmittedIfIs22 --origin \"./dist\" --goal xxx "
}