Commit 4fb1c4d3255582acddd3d23260aab6ea44b31290
1 parent
4c757e91
Exists in
spb-stable
and in
1 other branch
Change relative url and default folder
Showing
1 changed file
with
7 additions
and
7 deletions
Show diff stats
config/unicorn.rb.example
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | # WARNING: See config/application.rb under "Relative url support" for the list of |
12 | 12 | # other files that need to be changed for relative url support |
13 | 13 | # |
14 | -# ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab" | |
14 | +ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab" | |
15 | 15 | |
16 | 16 | # Use at least one worker per core if you're on a dedicated server, |
17 | 17 | # more will usually help for _short_ waits on databases/caches. |
... | ... | @@ -26,12 +26,12 @@ worker_processes 2 |
26 | 26 | |
27 | 27 | # Help ensure your application will always spawn in the symlinked |
28 | 28 | # "current" directory that Capistrano sets up. |
29 | -working_directory "/home/git/gitlab" # available in 0.94.0+ | |
29 | +working_directory "/opt/git/gitlab" # available in 0.94.0+ | |
30 | 30 | |
31 | 31 | # listen on both a Unix domain socket and a TCP port, |
32 | 32 | # we use a shorter backlog for quicker failover when busy |
33 | -listen "/home/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 64 | |
34 | -listen "127.0.0.1:8080", :tcp_nopush => true | |
33 | +listen "/opt/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 64 | |
34 | +listen "127.0.0.1:8090", :tcp_nopush => true | |
35 | 35 | |
36 | 36 | # nuke workers after 30 seconds instead of 60 seconds (the default) |
37 | 37 | # |
... | ... | @@ -51,13 +51,13 @@ listen "127.0.0.1:8080", :tcp_nopush => true |
51 | 51 | timeout 30 |
52 | 52 | |
53 | 53 | # feel free to point this anywhere accessible on the filesystem |
54 | -pid "/home/git/gitlab/tmp/pids/unicorn.pid" | |
54 | +pid "/opt/git/gitlab/tmp/pids/unicorn.pid" | |
55 | 55 | |
56 | 56 | # By default, the Unicorn logger will write to stderr. |
57 | 57 | # Additionally, some applications/frameworks log to stderr or stdout, |
58 | 58 | # so prevent them from going to /dev/null when daemonized here: |
59 | -stderr_path "/home/git/gitlab/log/unicorn.stderr.log" | |
60 | -stdout_path "/home/git/gitlab/log/unicorn.stdout.log" | |
59 | +stderr_path "/opt/git/gitlab/log/unicorn.stderr.log" | |
60 | +stdout_path "/opt/git/gitlab/log/unicorn.stdout.log" | |
61 | 61 | |
62 | 62 | # combine Ruby 2.0.0dev or REE with "preload_app true" for memory savings |
63 | 63 | # http://rubyenterpriseedition.com/faq.html#adapt_apps_for_cow | ... | ... |