Run GitLab use uWSGI
Created by: iron-udjin
Hello,
First of all I'd like to say thank you for excelent application. I'm trying to run GitLab 5.4 use uWSGI. It shows start page but all the links on the page are broken. For example, link to "Projects" page has to be: http://domain.com/dashboard/projects ..but it is: http://domain.com/config.ru/dashboard/projects
Here is my uwsgi.ini:
[uwsgi] socket = /tmp/gitlab.socket master = true processes = 4 chdir = /home/git/gitlab/ rack = config.ru post-buffering = 4096 env = RAILS_ENV=production chmod-socket = 777
uWSGI console output:
[uWSGI] getting INI configuration from /etc/uwsgi.d/uwsgi.gitlab.ini *** Starting uWSGI 1.9.14 (64bit) on [Wed Jul 24 18:49:33 2013] *** compiled with version: 4.7.3 on 24 July 2013 09:03:13 os: Linux-3.10.1-geek #1 SMP Mon Jul 22 13:45:53 GMT 2013 nodename: dev.tgrdev.com machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 16 current working directory: /home/git/gitlab detected binary path: /home/git/.gem/ruby/1.9.1/gems/uwsgi-1.9.14/ext/uwsgi/uwsgi.ruby your processes number limit is 192429 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes *** RRDtool library available at 0x22a6000 *** uwsgi socket 0 bound to UNIX address /tmp/gitlab.socket fd 3 ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux] your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 404840 bytes (395 KB) for 4 cores *** Operational MODE: preforking *** RACK app 0 loaded in 25 seconds at 0x1780 (GC frequency: AGGRESSIVE) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 20149) spawned uWSGI worker 1 (pid: 20177, cores: 1) spawned uWSGI worker 2 (pid: 20178, cores: 1) spawned uWSGI worker 3 (pid: 20179, cores: 1) spawned uWSGI worker 4 (pid: 20180, cores: 1)
Here is my nginx.conf:
server { listen *:80; server_name domain.com; server_tokens off; root /home/git/gitlab/public; location / { try_files $uri $uri/index.html $uri.html @uwsgi; } location @uwsgi { include uwsgi_params; uwsgi_modifier1 7; uwsgi_param SCRIPT_NAME config.ru; uwsgi_pass unix:/tmp/gitlab.socket; } }
Tell me please how I can correct links paths.
Thanks a lot!