LoginSignup
13
12

More than 5 years have passed since last update.

GitLab Omnibusを操作するコマンドたち

Last updated at Posted at 2015-05-20

1. はじめに

メモ書きです.
Ubuntu 14.04,GitLab 7.10.4の状態で.

2. rake

バックアップなら,

sudo gitlab-rake gitlab:backup:create

バックアップしたファイルのレストアは,

sudo gitlab-rake gitlab:backup:restore BACKUP=<file_name>

3. rails

console操作したいとき

sudo gitlab-rails console

4. ctl

ログを見たいとき

sudo gitlab-ctl tail

/etc/gitlab/gitlab.rb
の変更を反映するとき

sudo gitlab-ctl reconfigure

5. version

最新版を入れたいとき

sudo aptitude update
sudo aptitude install gitlab-ce

バージョン指定(ダウンも含めて)したいとき
バックアップをレストアするときにバージョンが異なるとできないので,
その辺りやGitLabの最新版で問題がある場合

sudo apt-cache showpkg gitlab-ce


Provides:
7.10.4~omnibus.1-1 -
7.10.4~omnibus-1 -
7.10.1~omnibus.2-1 -
7.10.1~omnibus-1 -
7.10.0~omnibus.4-1 -
7.10.0~omnibus.3-1 -
7.10.0~omnibus.2-1 -
7.10.0~omnibus.1-1 -
7.10.0~omnibus-1 -


sudo aptitude install gitlab-ce=7.10.0~omnibus-1

13
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
12