Skip to content

MuNan777/munan-cli-server

Repository files navigation

Welcome to munan-cli-server 👋

Version

munan-cli 配套云发布项目

Install

pnpm install

Set

mkdir .docker-volumes/deployConfig
cd .docker-volumes/deployConfig
touch [项目名称].js

导入执行 npm run deploy:cloud 所需的配置

配置将会以 --config-path=<configPath> 的参数传入命令行,可通过 process.argv 获取

配置例子
// 以腾讯云 cos 为例
const SECRET_ID = 'xxx'

const SECRET_KEY = 'xxx'

const LOCATION = 'xxx'

const BUCKET_NAME = 'xxx'

const DIST_NAME = 'xxx'

// 云发布可能需要设置 git token 以保证 docker 容器内有拉取代码权限
// gitee 格式: user:password
// github 格式:token
const GIT_TOKEN = ''

module.exports = {
  SECRET_ID,
  SECRET_KEY,
  LOCATION,
  BUCKET_NAME,
  DIST_NAME,
  GIT_TOKEN,
}

Usage

docker-compose up -d

Author

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published