当前位置:网站首页>【高效】最强开发工具Ctool编译踩坑
【高效】最强开发工具Ctool编译踩坑
2022-06-12 04:16:00 【夜猫逐梦】
导读
巧妇难为无米之炊,程序员不能没有
“轮子”,一直想把自己写的一些工具整合到一起,但又不想重新造轮子,开源那么多,拿来不是挺好。
这不,折腾了大半天,发现神器Ctool。今天就先编译一份自己的Ctool并编译、部署。

开发环境
| 版本号 | 描述 | |
|---|---|---|
| 操作系统 | Win11-21H2 | 内部版本号22000.588 |
| node -v | v12.18.3 | |
| npm -v | 6.14.6 | |
编译踩坑
代码下载
REM 从github服务器下载(经常下载失败)
git clone https://github.com/baiy/Ctool
REM 从github镜像服务器下载
git clone https://hub.fastgit.xyz/baiy/Ctool
REM 从小编gitee下载(已经解决下面的异常了)
git clone https://gitee.com/yeahmao/front_end__ctool
解决编译错误

文件package-lock.json中,包含了一些通过git+ssh访问github的配置。
将"resolved": "git+ssh://[email protected]/替换为"resolved": "https://,然后再次执行npm install就能正常编译了。
ps: 上述的编译问题,可能通过git-ssh配置git后就能解决了,未测试。
部署到服务器
编译选项问题
ctool官方给的编译命令为npm run build -adapter=[chrome|edge|utools|firefox|web],我分别使用命令npm run build -adapter=chrome和npm run build进行编译。
带-adapter=chrome命令行编译出来的文件比不带参数的文件要大一点,但是无法通过本地打开index.html访问。
部署到ngnix上
将dist目录中所有的文件拷贝到ngnix的目录中就可以了。
比如小编的ngnix工作目录为/usr/share/nginx/html_my_web,将文件拷贝到目录/usr/share/nginx/html_my_web/ctool即可。这样,直接访问http://www.l0l.fun/ctool/index.html或者http://www.l0l.fun/ctool/tool.html就可以了。

参考资料
- github官网: https://github.com/baiy/Ctool
- github在线使用地址: https://baiy.github.io/Ctool/
- 小编gitee地址:https://gitee.com/yeahmao/front_end__ctool
- 小编官网工具地址(第一次访问比较慢):http://www.l0l.fun/ctool/tool.html
边栏推荐
- 【mysql】mysql安装
- 疫情数据分析平台工作报告【3】网站部署
- Function realization and application of trait
- SQL safe backup display and zoom font support
- Exception handling and unit testing
- R language write function: use the write function to write data to the rstudio console, and the write function to write data to a new rstudio window (start a new window)
- Recommended system cleaning tools, cocktail Download
- Notes on relevant knowledge points such as original code / inverse code / complement code, size end, etc
- E-commerce middle office system architecture
- 调用提醒事项
猜你喜欢

The memory four area model of C language program

Naive Bayes classification of scikit learn
![[MySQL] MySQL installation](/img/f0/2b65b71e79ea0cc0790e4848092374.png)
[MySQL] MySQL installation

Function realization and application of trait

Enterprise Architect v16

疫情数据分析平台工作报告【6.5】疫情地图

eBPF系列学习(4)了解libbpf、CO-RE (Compile Once – Run Everywhe) | 使用go开发ebpf程序(云原生利器cilium ebpf )

疫情数据分析平台工作报告【6】可视化绘图

Solution en cas de défaillance du script Unity

Smart panel WiFi linkage technology, esp32 wireless chip module, Internet of things WiFi communication application
随机推荐
关于 国产麒麟Qt编译报错“xxx.pri has modification time xxxx s in the futrue“ 的解决方法
[C language] encapsulation interface (addition, subtraction, multiplication and division)
Database selected 60 interview questions
疫情数据分析平台工作报告【8.5】额外的爬虫和绘图
【FPGA+GPS接收器】基于FPGA的双频GPS接收器详细设计介绍
eBPF系列学习(4)了解libbpf、CO-RE (Compile Once – Run Everywhe) | 使用go开发ebpf程序(云原生利器cilium ebpf )
Sed command
R language plot visualization: plot visualization of basic 2D histogram, custom setting of color of 2D histogram, and histogram visualization of binary distribution (basic 2D histogram)
E-commerce middle office system architecture
PyTorch中的Sequential、ModuleList和ModuleDict用法总结
双目标定学习资料整理
图解 Apache SkyWalking UI 的使用
MongoDB精华总结
R语言plotly可视化:plotly可视化分组(grouped)小提琴图(grouped violin plot in R with plotly)
JSP实现银柜台业务绩效考核系统
Concept and introduction of microservice
WiFi module scheme of the wireless Internet of things, esp32-s3 chip technology, helps the equipment to be intelligent
DS18B20数字温度计 (一) 电气特性, 供电和接线方式
VIM command Encyclopedia
PostMessage implements window communication