Giter Club home page Giter Club logo

admin-web's Introduction

admin-web

项目环境

本项目必须使用 pnpm 包管理环境

使用版本

node: v20.12.2

pnpm: 9.1.0

项目开发运行

pnpm run dev

项目打包

pnpm run build

项目部署

# staging 环境
pnpm run deploy:staging

# production 环境
pnpm run deploy:prod

scripts/config.cjs (项目部署脚本相关)

exports.staging 与 .env.staging 与 package.json 中的 script 里的 build:staging 相关。exports.production 以此类推

注:私钥名称必须存在,否则脚本报错

const { getPrivateKey } = require("./utils.cjs");

/**
 * @type {import("ssh2-sftp-client").ConnectOptions[]}
 */
exports.staging = [
    {
        // 服务器ip地址
        host: "0.0.0.0",
        // 服务器用户
        username: "xxx",
        // 私钥文件名称(不使用私钥,可以替换成密码字段,password)
        privateKey: getPrivateKey("xxx_id_rsa"),
        // 部署路径
        path: "/path/to/...",
        // 备份路径
        backupPath: "/path/to/...",
    },
];

/**
 * @type {import("ssh2-sftp-client").ConnectOptions[]}
 */
exports.production = [
    {
        // 服务器ip地址
        host: "0.0.0.0",
        // 服务器用户
        username: "xxx",
        // 私钥文件名称
        privateKey: getPrivateKey("xxx_id_rsa"),
        // 部署路径
        path: "/path/to/...",
        // 备份路径
        backupPath: "/path/to/...",
    },
];

admin-web's People

Contributors

evilchan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.