Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tjj-deploy-cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tjj-deploy-cli

A cli tool for web deploy.

  • 0.0.4
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

安装

npm i tjj-deploy-cli -g

使用

1.初始化部署模板

deploy init

2.配置部署环境

部署配置文件位于deploy文件夹下的deploy.config.js,

具体配置信息请参考配置文件注释:

module.exports = {
  privateKey: '', // 本地私钥地址,位置一般在C:/Users/xxx/.ssh/id_rsa,非必填,有私钥则配置
  passphrase: '', // 本地私钥密码,非必填,有私钥则配置
  projectName: 'hivue', // 项目名称
  envs: [
      { // 测试环境
        name: '测试环境',
        script: "npm run build-dev", // 测试环境打包脚本
        host: '10.240.176.99', // 开发服务器地址
        port: 22, // ssh port,一般默认22
        username: 'root', // 登录服务器用户名
        password: '123456', // 登录服务器密码
        distPath: 'dist',  // 本地打包dist目录
        webDir: '/var/www/html/dev/hivue',  // // 测试环境服务器地址
      },
      {  // 线上环境
        name: '线上环境',
        script: "npm run build", // 线上环境打包脚本
        host: '10.240.176.99', // 开发服务器地址
        port: 22, // ssh port,一般默认22
        username: 'root', // 登录服务器用户名
        password: '123456', // 登录服务器密码
        distPath: 'dist',  // 本地打包dist目录
        webDir: '/var/www/html/prod/hivue' // 线上环境web目录
      }
  ],
}

3.环境部署

配置好deploy.config.js,运行

deploy start

Keywords

FAQs

Package last updated on 14 Sep 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc