升级GitLab6.x
来源:互联网 发布:文艺女青年 知乎 编辑:程序博客网 时间:2024/05/21 20:22
一、V6.2 to V6.3
前一篇博文《在 Ubuntu 12.04 上安装 GitLab6.x》已经介绍了安装Gitlab6.2的过程,那么怎么升级他呢?
1. 备份
cd /home/git/gitlabsudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
2. 停止gitlab服务
sudo service gitlab stop
3. 获取最新的发行版本
cd /home/git/gitlabsudo -u git -H git fetch删除原来的application.rb文件
sudo -u git rm -rf config/application.rb检出新版本
sudo -u git -H git checkout 6-3-stable
4. 升级gitlab-shell
cd /home/git/gitlab-shellsudo -u git -H git fetchsudo -u git -H git checkout v1.8.0
5. 安装库并迁移他
以MySQL为例
cd /home/git/gitlabsudo -u git -H bundle install --without development test postgres --deployment迁移数据库
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production清除缓冲
sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
6. 升级配置文件
cd /home/git/gitlabsudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb
7. 升级启动脚本
sudo cp lib/support/init.d/gitlab /etc/init.d/gitlabsudo chmod +x /etc/init.d/gitlab
8. 重启服务
sudo service gitlab startsudo service nginx restart
二、V6.3 to V6.4
执行第3步即可,完成获取6-4-stable工作。
不需要执行第6步!
执行顺序为:
1、2、3、4、5、7、8
附:(V6.2 -> V6.3)
检查Gitlab环境信息
检查Gitlab情况
终端执行情况:
tdtc010@tdtc010-Vostro-270:~$ cd /home/git/gitlabtdtc010@tdtc010-Vostro-270:/home/git/gitlab$ sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=productionSystem informationSystem: Ubuntu 12.04Current User: gitUsing RVM: noRuby Version: 2.0.0p247Gem Version: 2.0.3Bundler Version:1.3.5Rake Version: 10.1.0GitLab informationVersion: 6.3.1Revision: 779b4dcDirectory: /home/git/gitlabDB Adapter: mysql2URL: http://localhostHTTP Clone URL: http://localhost/some-project.gitSSH Clone URL: git@localhost:some-project.gitUsing LDAP: noUsing Omniauth: noGitLab ShellVersion: 1.8.0Repositories: /home/git/repositories/Hooks: /home/git/gitlab-shell/hooks/Git: /usr/bin/gittdtc010@tdtc010-Vostro-270:/home/git/gitlab$ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=productionChecking Environment ...Git configured for git user? ... yesHas python2? ... yespython2 is supported version? ... yesChecking Environment ... FinishedChecking GitLab Shell ...GitLab Shell version >= 1.7.9 ? ... OK (1.8.0)Repo base directory exists? ... yesRepo base directory is a symlink? ... noRepo base owned by git:git? ... yesRepo base access is drwxrws---? ... yesupdate hook up-to-date? ... yesupdate hooks in repos are links: ...xiao bin / companySite ... okRunning /home/git/gitlab-shell/bin/checkCheck GitLab API access: OKCheck directories and files: /home/git/repositories: OK /home/git/.ssh/authorized_keys: OKTest redis-cli executable: redis-cli 2.2.12Send ping to redis server: PONGgitlab-shell self-check successfulChecking GitLab Shell ... FinishedChecking Sidekiq ...Running? ... yesNumber of Sidekiq processes ... 1Checking Sidekiq ... FinishedChecking GitLab ...Database config exists? ... yesDatabase is SQLite ... noAll migrations up? ... yesGitLab config exists? ... yesGitLab config outdated? ... noLog directory writable? ... yesTmp directory writable? ... yesInit script exists? ... yesInit script up-to-date? ... yesprojects have namespace: ...xiao bin / companySite ... yesProjects have satellites? ...xiao bin / companySite ... yesRedis version >= 2.0.0? ... yesYour git bin path is "/usr/bin/git"Git version >= 1.7.10 ? ... yes (1.8.5)Checking GitLab ... Finished
0 0
- 升级GitLab6.x
- 安装 GitLab6.x
- sameersbn/gitlab6.9.2实战
- gitlab6 配置的几个问题说明
- centos6.X升级python3.X
- log4j1.x升级log4j2.x
- Cocos2d-x版本升级
- cocos2D-x升级
- Cocos2d-x版本升级
- CentOS6.X升级Python
- gitlab6 nginx配置和启动脚本
- MySQL 5.1.x 升级 5.5.x 问题
- cocos2d-x 2.x升级变化
- Spring3.x + Hibernate4.x 升级注意事项
- centos6.x 升级python2.7.x
- RxJava1.X升级到RxJava2.X笔记
- Jenkins升级:1.x到2.x
- RxJava1.X升级到RxJava2.X笔记
- PHP的一些面试题
- Ubutu12.04下下载与编译Android系统
- Linux2.6.37 I2C驱动框架分析(六)
- 开博宣言
- 使用PixelPut(打点函数)点阵显示汉字的程序小结
- 升级GitLab6.x
- 安装伪分布式系统
- Codeforces Round #219 (Div. 1)
- C#WinFrom程序打包/图解VS2008项目的安装与部署图解
- 找出序列中求和最接近于target的三个数 3Sum Closest
- 操作系统的自我修养-03-"Hello,World横空出世"
- Java虚拟机学习 - 垃圾收集算法
- vim 语法高亮颜色配置
- record