GithubHelp home page GithubHelp logo

alexramos2007 / gitlab-install Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caseyscarborough/gitlab-install

0.0 0.0 0.0 273 KB

A collection of shell scripts for automated installation of GitLab.

Home Page: caseyscarborough.com/projects/gitlab-install

Shell 100.00%

gitlab-install's Introduction

GitLab Automated Installation

This repository holds scripts that will perform automated installation of GitLab on your server.

Supported Systems

These are currently the tested and supported systems.

  • Ubuntu Server 12.04 64-Bit
  • Ubuntu Server 13.04 64-Bit

Usage

Ubuntu

For Ubuntu Server 12.04 or 13.04 64-Bit, issue the following commands. Ensure that you use the -d or --domain-var flags to specify your domain name, and --mysql or --postgresql to choose your database. PostgreSQL is the default, and is recommended.

# Download the script and make it executable
wget -O ~/ubuntu-server-12.04.sh https://raw.github.com/caseyscarborough/gitlab-install/master/ubuntu-server-12.04.sh
chmod u+x ~/ubuntu-server-12.04.sh

# Display the help menu
~/ubuntu-server-12.04.sh (-h OR --help)

# Run the script
sudo ~/ubuntu-server-12.04.sh -d gitlab.example.com (--mysql OR --postgresql)

Note: Although this script is titled ubuntu-server-12.04.sh, it does in fact work on both 12.04 and 13.04.

Debian

Note: The Debian script is currently outdated, and only installs GitLab v6.1. The primary focus is for the Ubuntu install, but if anyone wants to update the Debian script, pull requests are welcome.

For Debian 7.1 64-Bit, issue the following command as the root user, ensuring that you update the DOMAIN_VAR variable with your respective domain name. You'll also more than likely need to install curl with apt-get install -y curl.

curl https://raw.github.com/caseyscarborough/gitlab-install/master/debian-7.1.sh | DOMAIN_VAR=gitlab.example.com bash

After the script runs, your installation of GitLab should be fully completed and ready to go. You can then navigate to the application using your server's domain name.

Troubleshooting

If you run into problems, the first thing to check is to make sure that each file got it's proper configuration added. Everything listed below should happen automatedly, but there is always a chance for error. You can also check out the GitLab Troubleshooting Guide for further help. The following are the files to check and what should be set:

/home/git/gitlab-shell/config.yml

This file should have the gitlab_url set to the URL of your GitLab instance (with a trailing slash).

  gitlab_url: "http://gitlab.example.com/"

/home/git/gitlab/config/gitlab.yml

This file should have the hostname set under the web server settings.

gitlab:
  ## Web server settings
  host: gitlab.example.com
  port: 80

/home/git/gitlab/config/database.yml

This file should have the gitlab user and password for the database configuration.

production:
  username: gitlab
  password: kenvo2i3j0239urlks

/etc/nginx/sites-available/gitlab

This file should have the server name in the virtual host set to your domain.

server {
  listen *:80;
  server_name gitlab.example.com;
  server_token off;
  root /home/git/gitlab/public;
}

gitlab-install's People

Contributors

caseyscarborough avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.