Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
deploy-files
Advanced tools
使用node上传文件到远程机器
{
...
deployMap: {
sandbox: {
receiver: 'http://YOUR_HOST/receiver',
templatePath: '/home/work/nginx_static/html/test/template',
templateSuffix: '.html', // 模板后缀,不配置默认使用.tpl,也可传入'.(san|html)'
staticPath: '//home/work/nginx_static/html/test/static',
staticDomain: 'http://test.com:8888',
throttle: 200 // 文件上传的延迟时间,默认为200ms
},
sandbox2: {
...
}
},
...
}
// 实例化
const upload = new Upload({
disableFsr: false, // 默认启用fsr 默认false
host: 'http://host.com',
receiver: 'http://xxx.com:8xxx/receiver',
to: 'dest', // 目标机器路径
files: [{[filenam]: [sourceCode]}], // 文件对象
replace: [{from:'a', to:'b'}, {from: new RegExp('oldCDN', 'ig'), to: 'newCDN'}] // 替换内容
});
// 开始上传
upload.run();
把receiver.php,部署到远程机器,并保证receiver.php
能被正常访问
直接访问http://YOUR_HOST/YOUR_PATH/receiver.php
时,页面应该显示这行字
I'm ready for that, you know.
执行: rm ~/.deploy-tmp/deploy.json,删除本地缓存文件即可。
FAQs
deploy files with node
The npm package deploy-files receives a total of 7 weekly downloads. As such, deploy-files popularity was classified as not popular.
We found that deploy-files demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.