ローカルマシンにGitLabをインストールするメモ(3)
今日も ローカルマシンにGitLabをインストールするメモ(2) - myy*blog の続き.
つっかえていたところ
「GitLabをインストールする」の5番目「GitLabをインストールする」の以下のコマンド
bundle exec rake gitlab:setup RAILS_ENV=production
を実行すると,以下のエラー?が出ていた.
rake aborted! Access denied for user 'root'@'localhost' (using password: YES) (以下略)
これは,database.yml 内の username と password を変更し忘れが原因だった.
# # PRODUCTION # production: adapter: mysql2 encoding: utf8 reconnect: false database: gitlabhq_production pool: 5 username: root password: "secure password" # host: localhost # socket: /tmp/mysql.sock
次につっかえたところ
database.yml を修正して,再度,以下のコマンドを叩く.
bundle exec rake gitlab:setup RAILS_ENV=production
途中まではうまくいくんだけど,途中でこうなる.
== Seed from /Users/git/gitlab/db/fixtures/production/001_admin.rb 2013-05-24T03:53:56Z 78682 TID-ow2jqmc44 INFO: Sidekiq client using redis://localhost:6379 with options {:namespace=>"resque:gitlab"} rake aborted! No such file or directory - /home/git/repositories/root (略) Tasks: TOP => db:seed_fu (See full trace by running task with --trace)
/home/git/repositories/root がないのがいけないっぽい.
とりあえず,ここまで.