制作cocoapods国内镜像
来源:互联网 发布:沈宏非的淘宝店 编辑:程序博客网 时间:2024/06/02 14:24
国内访问cocoapods spec repo速度非常慢,网络不好的话做一次pod update要等半个小时以上。
初始化:
git clone --mirror https://github.com/CocoaPods/Specs.git
编辑config文件
[core] repositoryformatversion = 0 filemode = true bare = true[remote "origin"] fetch = +refs/heads/*:refs/heads/* fetch = +refs/tags/*:refs/tags/* mirror = true url = https://github.com/CocoaPods/Specs.git[remote "mirrors"] url = git@gitcafe.com:lloydsheng/Specs.git mirror = true skipDefaultUpdate = true
定期同步:
- 编辑同步脚本specssync.sh,添加:
git fetch remotegit push mirrors
- 设置cronjob每半个小时同步一次
30 * * * * /home/git/specssync.sh > /var/log/specssync.log 2>&1
使用镜像:
pod repo remove masterpod repo add master git@gitcafe.com:lloydsheng/Specs.git
最后,如果你不想花时间自己搭的话,可以使用我在gitcafe上搭建好了的镜像。
https://gitcafe.com/lloydsheng/Specs
0 0
- 制作cocoapods国内镜像
- 使用 CocoaPods 的国内镜像
- Cocoapods 的 Specs 的国内镜像
- cocoapods specs 镜像
- cocoapods specs 镜像
- cocoapods specs 镜像
- 国内Ubuntu镜像
- CentOS国内镜像
- nodejs 国内镜像
- npm 国内镜像
- 国内npm镜像
- Composer 国内镜像
- maven 国内镜像
- Laravel国内镜像
- Composer国内镜像
- 国内镜像地址
- 国内镜像地址
- cygwin国内镜像
- 单选 性别选项(男,女)提交问题
- 嵌入式Linux操作系统学习规划
- 終戦の日、各党が談話発表 安保法案への賛否にも言及
- 火狐浏览器插件vimperator的常用命令
- where clause is ambiguous
- 制作cocoapods国内镜像
- 中介者模式
- Linux进程间通信——使用信号
- planahead调试程序
- 测试分析例子--杯子,圆珠笔
- Myeclipse在mac中如何配置jdk
- UVa-400 Unix ls
- ZOJ 3703 Happy Programming Contest(0-1背包)
- Codeforces Round #303 (Div. 2) A - Equidistant String(贪心)