BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1090514a
Commit
1090514a
authored
Oct 18, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'improve-database-yml-examples' into 'master'
Improve database yml examples See merge request gitlab-org/gitlab-ce!10247
parents
b3f74903
c17570d3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
18 deletions
+30
-18
database.yml.mysql
config/database.yml.mysql
+18
-3
database.yml.postgresql
config/database.yml.postgresql
+10
-11
prepare_build.sh
scripts/prepare_build.sh
+2
-4
No files found.
config/database.yml.mysql
View file @
1090514a
...
...
@@ -10,7 +10,7 @@ production:
pool: 10
username: git
password: "secure password"
#
host: localhost
host: localhost
# socket: /tmp/mysql.sock
#
...
...
@@ -25,7 +25,22 @@ development:
pool: 5
username: root
password: "secure password"
# host: localhost
host: localhost
# socket: /tmp/mysql.sock
#
# Staging specific
#
staging:
adapter: mysql2
encoding: utf8
collation: utf8_general_ci
reconnect: false
database: gitlabhq_staging
pool: 10
username: git
password: "secure password"
host: localhost
# socket: /tmp/mysql.sock
# Warning: The database defined as "test" will be erased and
...
...
@@ -40,6 +55,6 @@ test: &test
pool: 5
username: root
password:
#
host: localhost
host: localhost
# socket: /tmp/mysql.sock
prepared_statements: false
config/database.yml.postgresql
View file @
1090514a
...
...
@@ -6,10 +6,9 @@ production:
encoding: unicode
database: gitlabhq_production
pool: 10
# username: git
# password:
# host: localhost
# port: 5432
username: git
password: "secure password"
host: localhost
#
# Development specific
...
...
@@ -20,8 +19,8 @@ development:
database: gitlabhq_development
pool: 5
username: postgres
password:
#
host: localhost
password:
"secure password"
host: localhost
#
# Staging specific
...
...
@@ -30,10 +29,10 @@ staging:
adapter: postgresql
encoding: unicode
database: gitlabhq_staging
pool:
5
username:
postgres
password:
#
host: localhost
pool:
10
username:
git
password:
"secure password"
host: localhost
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
...
...
@@ -45,5 +44,5 @@ test: &test
pool: 5
username: postgres
password:
#
host: localhost
host: localhost
prepared_statements: false
scripts/prepare_build.sh
View file @
1090514a
...
...
@@ -27,11 +27,9 @@ fi
cp
config/database.yml.
$GITLAB_DATABASE
config/database.yml
if
[
"
$GITLAB_DATABASE
"
=
'postgresql'
]
;
then
sed
-i
's/
# host:.*/host:
postgres/g'
config/database.yml
sed
-i
's/
localhost/
postgres/g'
config/database.yml
else
# Assume it's mysql
sed
-i
's/username:.*/username: root/g'
config/database.yml
sed
-i
's/password:.*/password:/g'
config/database.yml
sed
-i
's/# host:.*/host: mysql/g'
config/database.yml
sed
-i
's/localhost/mysql/g'
config/database.yml
fi
cp
config/resque.yml.example config/resque.yml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment