From e914a960fc10b1438fd65b443ddff0500f4c52b1 Mon Sep 17 00:00:00 2001 From: thanhhh Date: Fri, 28 Dec 2012 10:58:39 +0700 Subject: [PATCH 1/3] Update doc/install/installation.md --- doc/install/installation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/install/installation.md b/doc/install/installation.md index 718e4cf6419..90e0d5a6a1c 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -245,10 +245,10 @@ Make sure to update username/password in config/database.yml. sudo gem install charlock_holmes --version '0.6.9' - # For mysql db + # For postgres db sudo -u gitlab -H bundle install --deployment --without development test postgres - # Or For postgres db + # Or For mysql db sudo -u gitlab -H bundle install --deployment --without development test mysql ## Configure Git -- GitLab From 15d2e0710d025c080bbbe91114ac3c0496dbd68e Mon Sep 17 00:00:00 2001 From: thanhhh Date: Fri, 28 Dec 2012 11:08:34 +0700 Subject: [PATCH 2/3] Install the postgreSQL dev package --- doc/install/installation.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/install/installation.md b/doc/install/installation.md index 90e0d5a6a1c..f236886dfe3 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -245,6 +245,11 @@ Make sure to update username/password in config/database.yml. sudo gem install charlock_holmes --version '0.6.9' + # Install the postgreSQL dev package with header of PostgreSQL + sudo aptitude install libpq-dev + + sudo gem install pg -v '0.14.1' + # For postgres db sudo -u gitlab -H bundle install --deployment --without development test postgres -- GitLab From 94f036382db3109b05c3b89732f544e8a0f9003e Mon Sep 17 00:00:00 2001 From: thanhhh Date: Fri, 28 Dec 2012 11:21:41 +0700 Subject: [PATCH 3/3] Install Activerecord-Mysql2/pg-Adapter --- doc/install/installation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/install/installation.md b/doc/install/installation.md index f236886dfe3..60f52477700 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -272,6 +272,12 @@ used for the `email.from` setting in `config/gitlab.yml`) ## Initialise Database and Activate Advanced Features + # For MySQL db + sudo gem install activerecord-mysql2-adapter + + # For postgres db + sudo gem install activerecord-pg-adapter + sudo -u gitlab -H bundle exec rake gitlab:app:setup RAILS_ENV=production -- GitLab