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
402361af
Commit
402361af
authored
Apr 15, 2014
by
Cyril Rohr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup default gitlab.yml with possibility to override default url via environment variable.
This only applies to packaging with
https://pkgr.io
.
parent
b1d68b6e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
pkgr_before_precompile.sh
bin/pkgr_before_precompile.sh
+8
-1
No files found.
bin/pkgr_before_precompile.sh
View file @
402361af
#!/bin/sh
#!/bin/sh
set
-e
x
set
-e
for
file
in
config/
*
.yml.example
;
do
for
file
in
config/
*
.yml.example
;
do
cp
${
file
}
config/
$(
basename
${
file
}
.example
)
cp
${
file
}
config/
$(
basename
${
file
}
.example
)
done
done
# Allow to override the Gitlab URL from an environment variable, as this will avoid having to change the configuration file for simple deployments.
config
=
$(
echo
'<% gitlab_url = URI(ENV["GITLAB_URL"] || "http://localhost:80") %>'
|
cat
- config/gitlab.yml
)
echo
"
$config
"
>
config/gitlab.yml
sed
-i
"s/host: localhost/host: <%= gitlab_url.host %>/"
config/gitlab.yml
sed
-i
"s/port: 80/port: <%= gitlab_url.port %>/"
config/gitlab.yml
sed
-i
"s/https: false/https: <%= gitlab_url.scheme == 'https' %>/"
config/gitlab.yml
# No need for config file. Will be taken care of by REDIS_URL env variable
# No need for config file. Will be taken care of by REDIS_URL env variable
rm
config/resque.yml
rm
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