How to install GitLab 6.6.5 on debian/Ubuntu with nginx subdir

How to install GitLab 6.6.5 on debian/Ubuntu with nginx subdir

How to install GitLab 6.6.5 on debian/Ubuntu with nginx subdir

How to install GitLab 6.6.5 on debian/Ubuntu with nginx subdir への13件のコメント

How to install GitLab 6.6.5 on debian/Ubuntu with nginx subdir

I introduce you ,how to install GitLab on debian(wheezy) or Ubuntu(12.04 Server or other). Hosting GitLab App in a subdirectory of nginx with using passenger.

I examine this on debian wheezy 7.4 and Ubuntu Server 12.04.4, This way might be a possibility on other debian’s distribution.

if my introduction is wrong, please post a comment!!

The first half of this article is instration of Rails environment ,because of GitLab is made by Ruby on Rails.the latter half is instration of GitLab and hosting GitLab on nginx subdirectory with fusion passenger.

Precondition

using nginx as a Web server

Hosting Rails app with nginx and passenger

GitLab app deploy subdir of nginx

Hostname of GitLab *** www.myhost.jp

Uri of GitLab *** http://www.myhost.jp/gitlab

create git user ,sudo privileges to the user

grant sudo privileges to git

Requirements for installing

create .gemrc file

create ~/.gemrc file to prevent rdoc and ri installation.

install Ruby and Rails

minimum requirements for Ruby 1.9.

if the distribution has a ruby package version 1.9 or over.

Ubuntu 12.04
if the distribution has a ruby package version 1.8.

REDIS configuration,start service

The latter half is to install GitLab and nginx.

Installing Gitlab-shell

adjust gitlab_url.

exec installation

Instralling GitLab

Check out GitLab sources from GitHub.
(It takes about 20 minites.total download size approximates 70MB)

Hostname、Relative Url Root

Relative Url Root

Mysql configuration

adjust user name and password for Production mode.

Run bundle install

Create Directories

Create database

if the creation complete, user name and password are shown.
please put it down.

login………admin@local.host
password……5iveL!fe

Create a service script and configuration

By default, Application server of GitLab is puma. But I use fusion passenger as Application server.
So I create a service script of GitLab(sidekiq)

please download from this site.

Instralling nginx

Compiling nginx for cooperation with passenger.

Installing passenger gem

Compiling nginx

Pass the checking requirements for compilation, a message is shown whether if you continue compile?
please select 1.

permission of /opt/nginx

check configration of nginx, start service

checking the configration of nginx with -t option.
If configuration is OK, test with a browser.
By accessing http://localhost in browser,top page of nginx is shown,test is complete.

check process id(pid) of nginx master.

kill process of nginx : master process

nginx cooperate with passenger

Add these lines to nginx.conf
Attension!!! line of pid, separate pid and /opt/nginx/logs/nginx.pid with tab char!!
because service script of nginx reads this line ,and judge pid by the tab char.

Service Script of nginx

I create a service script of nginx.

the script can downlaod from here.
Service script of nginx

Copy the script and service registration

if you want start or stop or restart nginx,following commands are available.

or

modification of nginx(www-data)

to access /home/git/repositories folder ,add nginx user to git group.

Precompile of assets

after precompiling, please restart nginx service.

Now, Check the GitLab!!

With a browser,accsess to http://www.myhost.jp/gitlab

Screenshot-GitLab - Chromium

Login to GitLab

login………admin@local.host
password……5iveL!fe

Create a Project(repository)

Screenshot-Dashboard | GitLab - Chromium

Screenshot-New Project | GitLab - Chromium

Check if the repository is created.

if the repository is not properly created.
Recreate a repository ,after restart service of GitLab.

Push to repository from other PC

Create a directory,and init Git repository.and create a sample file named README.
Examine to push to GitLab.

Check the commit with Browser

Screenshot-Commits at master - Administrator - abc | GitLab - Chromium

Screenshot-Administrator - abc | GitLab - Chromium

Congratulations!!


About the author:

Related Posts

13 Comments

  1. rails developers  - 2014年7月28日 - 9:37 PM
    /

    Hello, I would like to subscribe for this blog to take latest updates,
    so where can i do it please help out.

  2. Solutions  - 2014年8月4日 - 5:32 AM
    /

    Hey There. I found your blog using msn. This is a very well written article.
    I will be sure to bookmark it and return to read more of
    your useful info. Thanks for the post. I will certainly comeback.

  3. web site  - 2014年8月12日 - 12:12 AM
    /

    This page truly has all of the information I needed concerning this subject and didn’t know who to ask.

  4. Leather Goods  - 2014年8月14日 - 7:03 PM
    /

    Link exchange is nothing else but it is just placing the other person’s webpage link on your page
    at suitable place and other person will also do same in favor of you.

  5. extreme peptides  - 2014年8月15日 - 6:32 AM
    /

    I’m not that much of a online reader to be honest but your sites really nice, keep it up!
    I’ll go ahead and bookmark your website to come back later on. Cheers

  6. Buy Cialis  - 2014年8月16日 - 6:41 AM
    /

    This is a good tip particularly to those
    fresh to the blogosphere. Short but very precise info…
    Thanks for sharing this one. A must read post!

  7. Foods To Avoid With IBS  - 2014年8月18日 - 2:26 PM
    /

    Hey! Would you mind if I share your blog with my twitter group?

    There’s a lot of people that I think would really appreciate your content.
    Please let me know. Many thanks

  8. taking surveys for money  - 2014年8月19日 - 9:13 PM
    /

    Pretty section of content. I just stumbled upon your site and in accession capital to claim that
    I acquire actually enjoyed account your blpg posts.

    Any way I will be subscribing in your augment or even I success you get entry to constantly rapidly.

  9. venus factor diet,  - 2014年8月23日 - 11:53 AM
    /

    Hmm it appears like your blog ate my first comment (it was super long)
    so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog.

    I too am an aspiring blog blogger but I’m still new to the whole
    thing. Do you have any tips for inexperienced blog writers?
    I’d certainly appreciate it.

  10. Shirleen  - 2014年8月25日 - 4:44 PM
    /

    Hey! Do you use Twitter? I’d like to follow you if that would be
    okay. I’m definitely enjoying your blog and look foprward to neww updates.

  11. Weather  - 2014年8月26日 - 1:19 PM
    /

    It’s very straightforward to find out any matter
    on net as compared to books, as I found this piece of writing at this website.

  12. vedic math  - 2014年8月26日 - 10:43 PM
    /

    I got this web site from my friend who told me on the topic of tis web pagte and now this time
    I am visiting this website and resading very informative articles here.

  13. Holley Donten  - 2014年8月30日 - 12:14 PM
    /

    hi!,I like your writing so a lot! percentage we keep up a correspondence extra approximately your article on AOL? I need a specialist on this house to resolve my problem. Maybe that is you! Looking ahead to peer you.

Back to Top