summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorDaniel Gerhardt <code@dgerhardt.net>2015-06-05 19:30:56 +0200
committerDaniel Gerhardt <code@dgerhardt.net>2015-06-05 19:30:56 +0200
commit354c4d28ee10ddb5f5a35839ef18f0d1ef0b5dae (patch)
treece4752dca05167de48162a56886813e1b4f9c051 /doc/examples
parent06f586c8e85d100070745e8453bf9dc1b2528451 (diff)
downloadgitlab-ci-354c4d28ee10ddb5f5a35839ef18f0d1ef0b5dae.tar.gz
Fix DB configuration for Docker in GitLab script example
The DB host was set to 'postgres' while the rest of the build script is set up to work with MySQL. This caused builds to fail with: Mysql2::Error: Unknown MySQL server host 'postgres' (25)
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/build_script_gitlab_ce.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/examples/build_script_gitlab_ce.md b/doc/examples/build_script_gitlab_ce.md
index bfbfcdd..e14d045 100644
--- a/doc/examples/build_script_gitlab_ce.md
+++ b/doc/examples/build_script_gitlab_ce.md
@@ -18,7 +18,7 @@ if [ -f /.dockerinit ]; then
cp config/database.yml.mysql config/database.yml
sed -i 's/username:.*/username: root/g' config/database.yml
sed -i 's/password:.*/password:/g' config/database.yml
- sed -i 's/# socket:.*/host: postgres/g' config/database.yml
+ sed -i 's/# socket:.*/host: mysql/g' config/database.yml
cp config/resque.yml.example config/resque.yml
sed -i 's/localhost/redis/g' config/resque.yml
@@ -90,4 +90,3 @@ or
```
export LANG=en_US.UTF-8
```
-