Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2f0d0d21
Commit
2f0d0d21
authored
Oct 18, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflict in scripts/prepare_build.sh and database.yml.* files
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
0b5ee5a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
29 deletions
+32
-29
config/database_geo.yml.mysql
config/database_geo.yml.mysql
+18
-4
config/database_geo.yml.postgresql
config/database_geo.yml.postgresql
+10
-11
scripts/prepare_build.sh
scripts/prepare_build.sh
+4
-14
No files found.
config/database_geo.yml.mysql
View file @
2f0d0d21
...
...
@@ -13,7 +13,7 @@ production:
pool: 10
username: git
password: "secure password"
#
host: localhost
host: localhost
# socket: /tmp/mysql.sock
#
...
...
@@ -28,7 +28,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_geo_staging
pool: 10
username: git
password: "secure password"
host: localhost
# socket: /tmp/mysql.sock
# Warning: The database defined as "test" will be erased and
...
...
@@ -43,6 +58,5 @@ test: &test
pool: 5
username: root
password:
#
host: localhost
host: localhost
# socket: /tmp/mysql.sock
config/database_geo.yml.postgresql
View file @
2f0d0d21
...
...
@@ -6,10 +6,9 @@ production:
encoding: unicode
database: gitlabhq_geo_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_geo_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_geo_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,4 +44,4 @@ test: &test
pool: 5
username: postgres
password:
#
host: localhost
host: localhost
scripts/prepare_build.sh
View file @
2f0d0d21
...
...
@@ -30,25 +30,15 @@ cp config/database.yml.$GITLAB_DATABASE config/database.yml
cp
config/database_geo.yml.
$GITLAB_DATABASE
config/database_geo.yml
if
[
"
$GITLAB_DATABASE
"
=
'postgresql'
]
;
then
<<<<<<
< HEAD
sed
-i
's/# host:.*/host: postgres/g'
config/database.yml
sed
-i
's/localhost/postgres/g'
config/database.yml
# EE-only
sed
-i
's/
# host:.*/host:
postgres/g'
config/database_geo.yml
sed
-i
's/
localhost/
postgres/g'
config/database_geo.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
# EE-only
sed
-i
's/username:.*/username: root/g'
config/database_geo.yml
sed
-i
's/password:.*/password:/g'
config/database_geo.yml
sed
-i
's/# host:.*/host: mysql/g'
config/database_geo.yml
=======
sed
-i
's/localhost/postgres/g'
config/database.yml
else
# Assume it's mysql
sed
-i
's/localhost/mysql/g'
config/database.yml
>>>>>>>
upstream/master
sed
-i
's/localhost/mysql/g'
config/database_geo.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