
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
sftp-deploy-cfs
Advanced tools
执行命令:npm i --save-dev sftp-deploy-cfs
如已执行安装,后续不再用执行
在build目录下添加deploy.js文件:
const sftpDeploy = require('sftp-deploy-cfs');
sftpDeploy([
{
id: 'uat', // 唯一key
name: 'UAT环境', // 别名
host: '10.6.14.138', // 服务器ip
port: 23, // 端口
username: '****', // 服务器账号
password: '****', // 服务器密码
deployPath: 'dist', // 待部署的文件路径
romotePath: '/host1' // 部署到服务器的文件路径
},
{
id: 'sit',
name: 'SIT环境',
host: '10.6.14.138',
port: 23,
username: '****',
password: '****',
deployPath: 'dist',
romotePath: '/host2'
},
...
])
在package.json文件中,scripts处添加:
"deploy": "node ./build/deploy",
npm run deploy 或 npm run deploy uat
执行命令:npm run deploy
如:需要部署uat与sit环境
执行命令:npm run deploy uat,sit
“uat,sit”为指定的服务器配置的id,多个用英文“,”分割
FAQs
自动部署到sftp协议服务器的方式
The npm package sftp-deploy-cfs receives a total of 1 weekly downloads. As such, sftp-deploy-cfs popularity was classified as not popular.
We found that sftp-deploy-cfs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.