
Security News
Rolldown Pulls Rust React Compiler Integration After Binary Size Increase
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.
node执行自动部署,可配置多环境,自动打包并部署到服务器上
npm i c-deploy -D
or
cnpm i c-deploy -D
or
yarn add c-deploy -D
npx c-deploy
npx c-deploy init
npx c-deploy upload
npx c-deploy -h[help]
npm i c-deploy -g
or
cnpm i c-deploy -g
or
yarn global add c-deploy
c-deploy
c-deploy init
c-deploy upload
c-deploy -h[help]
module.exports = [
// 一个对象为一个环境,多个环境将会询问部署环境,单环境会跳过询问
{
name: '测试环境dev', // 部署环境的名称(多环境名称不能重复)
publicPath: 'dist', // 项目打包之后的文件夹名称,一般都是dist文件夹,如果你的项目打包成别的文件夹名称,填写打包之后文件夹名称即可
script: 'npm run build', // 打包命令,不需要填空
host: '', // 服务器ip
port: '22', // 服务器连接端口通常不用改
username: 'root', // 部署服务器的账号
password: '', // 部署服务器的密码,如果重要,可以不写在当前配置文件中(为空运行时将要求输入密码)
privateKey: '', // 部署服务器的密码私钥,填写私钥路径(从进程执行时的工作目录开始) 优先级 私钥 -> 密码 例:'/home/steel/.ssh/id_rsa' 不填写则寻找密码password
servicePath: '', // 前端代码在服务器下的路径
backupDist: true // 是否保留旧版本,为true后会对旧版本publicPath重命名(带时间)进行备份, 类型:Boolean true(当前目录进行备份) false(不备份), String(指定服务器目录进行备份)
},
{
name: '正式环境pro', // 部署环境的名称(多环境名称不能重复)
publicPath: 'dist', // 项目打包之后的文件夹名称,一般都是dist文件夹,如果你的项目打包成别的文件夹名称,填写打包之后文件夹名称即可
script: 'npm run build', // 打包命令,不需要填空
host: '', // 服务器ip
port: '22', // 服务器连接端口通常不用改
username: 'root', // 部署服务器的账号
password: '', // 部署服务器的密码,如果重要,可以不写在当前配置文件中(为空运行时将要求输入密码)
privateKey: '', // 部署服务器的密码私钥,填写私钥路径(从进程执行时的工作目录开始) 优先级 私钥 -> 密码 例:'/home/steel/.ssh/id_rsa' 不填写则寻找密码password
servicePath: '', // 前端代码在服务器下的路径
backupDist: true // 是否保留旧版本,为true后会对旧版本publicPath重命名(带时间)进行备份, 类型:Boolean true(当前目录进行备份) false(不备份), String(指定服务器目录进行备份)
}
]
需要服务器支持 unzip
FAQs
node执行自动部署,可配置多环境,自动打包并部署到服务器上
The npm package c-deploy receives a total of 1 weekly downloads. As such, c-deploy popularity was classified as not popular.
We found that c-deploy 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
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.