Skip to content

Instantly share code, notes, and snippets.

@sudahiroshi
Created December 18, 2013 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sudahiroshi/8021969 to your computer and use it in GitHub Desktop.
Save sudahiroshi/8021969 to your computer and use it in GitHub Desktop.
GitBucketのインストール手順 ref: http://qiita.com/sudahiroshi/items/78b7cf006d07db44f62c
Ubuntu Server 12.04.3 LTS 64bit
$ sudo apt-get install openjdk-7-jre
$ wget http://ftp.meisei-u.ac.jp/mirror/apache/dist/tomcat/tomcat-7/v7.0.47/bin/apache-tomcat-7.0.47.tar.gz
$ tar zxvf apache-tomcat-7.0.47.tar.gz
$ wget https://github.com/takezoe/gitbucket/releases/download/1.8/gitbucket.war
$ mv gitbucket.war apache-tomcat-7.0.47/webapps/
$ cd apache-tomcat-7.0.42
$ ./bin/startup.sh
$ ./bin/shutdown.sh
$ sudo apt-get install nginx
server {
root /usr/share/nginx/www;
index index.html index.htm;
server_name localhost;
location / {
}
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
location /gitbucket {
proxy_pass http://localhost:8080;
}
}
$ sudo /etc/init.d/nginx restart
http://git.foo.com/gitbucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment