PCM/swagger.sh

14 lines
475 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 请先保证swagger的安装可参考 https://goswagger.io/install.html
swagger mixin lan_trans/openapiv2/idl/*/*.json -o lan_trans/swagger.json
rm -rf lan_trans/openapiv2
# 将机器的sshkey保存到公有云机器121.41.88.120上
#scp -P 22 gen/swagger.json root@121.41.88.120:/root/doc
# 服务端运行的docker
# docker run --name swagger -d --rm -p 80:80 -v /root/doc:/usr/share/nginx/html/swagger -e SPEC_URL=swagger/swagger.json redocly/redoc