Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

去掉源码中上传文件,谷歌限制的注释,不生效 #25

Open
Xieyingxiong opened this issue Nov 19, 2020 · 1 comment
Open

Comments

@Xieyingxiong
Copy link

image
修改完这个postman.js文件后,重启yapi,没有效果。这是为什么?是还要重启其他文件吗?

@innlym
Copy link

innlym commented Sep 10, 2021

修改完代码需要重新编译才可以。然而在使用yapi-cli安装的代码里我怎么都编译不成功。所以参考yapi的命令行部署和yapi里的package.js里面的命令,重新部署了一遍。
操作流程:

// 停止旧的yapi服务
mkdir yapi
cd yapi
git clone https://github.com/YMFE/yapi.git vendors
cp <旧的yapi目录>/config.json ./config.json //复制旧的配置文件到新目录
cd vendors
npm install --production --registry https://registry.npm.taobao.org
// 修改 client/components/Postman/Postman.js 
npm run build-client // 重新编译(这整这么多就是为了执行这个)
// 官方的部署流程有 `npm run install-server` 这一步,因为我们不需要在初始数据库,所以不要执行这一步
node server/app.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants