Logs

gogs

Gogs(Go Git Service) is a painless self-hosted Git Service written in Go.

Installation instructions

Here is how to install the package on a CentOS / RHEL 6 64 bits server:

sudo rpm --import https://rpm.packager.io/key echo "[gogs] name=Repository for pkgr/gogs application. baseurl=https://rpm.packager.io/gh/pkgr/gogs/centos6/pkgr enabled=1" | sudo tee /etc/yum.repos.d/gogs.repo sudo yum install gogs

You can also download the raw package.

Here is how you would install MySQL and setup NginX to get a fully working installation: ## Debian/Ubuntu ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql server and database debconf-set-selections <<CONFIG mysql-server-5.5 mysql-server/root_password password ${MYSQL_PASSWORD} mysql-server-5.5 mysql-server/root_password_again password ${MYSQL_PASSWORD} CONFIG apt-get install -y --force-yes mysql-server mysql -uroot -p${MYSQL_PASSWORD} -e "create database if not exists ${APP_NAME};" # setup nginx configuration apt-get install -y nginx cat > /etc/nginx/sites-available/default <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF sudo service nginx restart ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy! ## CentOS/RHEL ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql yum install mysql-server -y service mysql-server start chkconfig mysql-server mysqladmin -u root password "${MYSQL_PASSWORD}" mysqladmin -u root --password="${MYSQL_PASSWORD}" password "${MYSQL_PASSWORD}" mysql -u root -p${MYSQL_PASSWORD} -e "CREATE DATABASE IF NOT EXISTS ${APP_NAME}; use ${APP_NAME}; set global storage_engine=INNODB;" # install nginx rpm -Uhv http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm yum install -y nginx cat > /etc/nginx/conf.d/default.conf <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF service nginx start chkconfig nginx on ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy!

Here is how to install the package on a CentOS / RHEL 7 64 bits server:

sudo rpm --import https://rpm.packager.io/key echo "[gogs] name=Repository for pkgr/gogs application. baseurl=https://rpm.packager.io/gh/pkgr/gogs/centos7/pkgr enabled=1" | sudo tee /etc/yum.repos.d/gogs.repo sudo yum install gogs

You can also download the raw package.

Here is how you would install MySQL and setup NginX to get a fully working installation: ## Debian/Ubuntu ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql server and database debconf-set-selections <<CONFIG mysql-server-5.5 mysql-server/root_password password ${MYSQL_PASSWORD} mysql-server-5.5 mysql-server/root_password_again password ${MYSQL_PASSWORD} CONFIG apt-get install -y --force-yes mysql-server mysql -uroot -p${MYSQL_PASSWORD} -e "create database if not exists ${APP_NAME};" # setup nginx configuration apt-get install -y nginx cat > /etc/nginx/sites-available/default <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF sudo service nginx restart ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy! ## CentOS/RHEL ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql yum install mysql-server -y service mysql-server start chkconfig mysql-server mysqladmin -u root password "${MYSQL_PASSWORD}" mysqladmin -u root --password="${MYSQL_PASSWORD}" password "${MYSQL_PASSWORD}" mysql -u root -p${MYSQL_PASSWORD} -e "CREATE DATABASE IF NOT EXISTS ${APP_NAME}; use ${APP_NAME}; set global storage_engine=INNODB;" # install nginx rpm -Uhv http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm yum install -y nginx cat > /etc/nginx/conf.d/default.conf <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF service nginx start chkconfig nginx on ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy!

Here is how to install the package on a Debian 7 Wheezy 64bits server:

wget -qO - https://deb.packager.io/key | sudo apt-key add - echo "deb https://deb.packager.io/gh/pkgr/gogs wheezy pkgr" | sudo tee /etc/apt/sources.list.d/gogs.list sudo apt-get update sudo apt-get install gogs*=0.9.113-1483413028.e8c3e9b.wheezy

You can also download the raw package.

Here is how you would install MySQL and setup NginX to get a fully working installation: ## Debian/Ubuntu ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql server and database debconf-set-selections <<CONFIG mysql-server-5.5 mysql-server/root_password password ${MYSQL_PASSWORD} mysql-server-5.5 mysql-server/root_password_again password ${MYSQL_PASSWORD} CONFIG apt-get install -y --force-yes mysql-server mysql -uroot -p${MYSQL_PASSWORD} -e "create database if not exists ${APP_NAME};" # setup nginx configuration apt-get install -y nginx cat > /etc/nginx/sites-available/default <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF sudo service nginx restart ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy! ## CentOS/RHEL ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql yum install mysql-server -y service mysql-server start chkconfig mysql-server mysqladmin -u root password "${MYSQL_PASSWORD}" mysqladmin -u root --password="${MYSQL_PASSWORD}" password "${MYSQL_PASSWORD}" mysql -u root -p${MYSQL_PASSWORD} -e "CREATE DATABASE IF NOT EXISTS ${APP_NAME}; use ${APP_NAME}; set global storage_engine=INNODB;" # install nginx rpm -Uhv http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm yum install -y nginx cat > /etc/nginx/conf.d/default.conf <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF service nginx start chkconfig nginx on ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy!

Here is how to install the package on a Debian 8 Jessie 64bits server:

wget -qO - https://deb.packager.io/key | sudo apt-key add - echo "deb https://deb.packager.io/gh/pkgr/gogs jessie pkgr" | sudo tee /etc/apt/sources.list.d/gogs.list sudo apt-get update sudo apt-get install gogs*=0.9.113-1483413028.e8c3e9b.jessie

You can also download the raw package.

Here is how you would install MySQL and setup NginX to get a fully working installation: ## Debian/Ubuntu ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql server and database debconf-set-selections <<CONFIG mysql-server-5.5 mysql-server/root_password password ${MYSQL_PASSWORD} mysql-server-5.5 mysql-server/root_password_again password ${MYSQL_PASSWORD} CONFIG apt-get install -y --force-yes mysql-server mysql -uroot -p${MYSQL_PASSWORD} -e "create database if not exists ${APP_NAME};" # setup nginx configuration apt-get install -y nginx cat > /etc/nginx/sites-available/default <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF sudo service nginx restart ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy! ## CentOS/RHEL ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql yum install mysql-server -y service mysql-server start chkconfig mysql-server mysqladmin -u root password "${MYSQL_PASSWORD}" mysqladmin -u root --password="${MYSQL_PASSWORD}" password "${MYSQL_PASSWORD}" mysql -u root -p${MYSQL_PASSWORD} -e "CREATE DATABASE IF NOT EXISTS ${APP_NAME}; use ${APP_NAME}; set global storage_engine=INNODB;" # install nginx rpm -Uhv http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm yum install -y nginx cat > /etc/nginx/conf.d/default.conf <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF service nginx start chkconfig nginx on ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy!

Here is how to install the package on a Ubuntu 12.04 Precise 64bits server:

wget -qO - https://deb.packager.io/key | sudo apt-key add - echo "deb https://deb.packager.io/gh/pkgr/gogs precise pkgr" | sudo tee /etc/apt/sources.list.d/gogs.list sudo apt-get update sudo apt-get install gogs*=0.9.113-1483413028.e8c3e9b.precise

You can also download the raw package.

Here is how you would install MySQL and setup NginX to get a fully working installation: ## Debian/Ubuntu ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql server and database debconf-set-selections <<CONFIG mysql-server-5.5 mysql-server/root_password password ${MYSQL_PASSWORD} mysql-server-5.5 mysql-server/root_password_again password ${MYSQL_PASSWORD} CONFIG apt-get install -y --force-yes mysql-server mysql -uroot -p${MYSQL_PASSWORD} -e "create database if not exists ${APP_NAME};" # setup nginx configuration apt-get install -y nginx cat > /etc/nginx/sites-available/default <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF sudo service nginx restart ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy! ## CentOS/RHEL ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql yum install mysql-server -y service mysql-server start chkconfig mysql-server mysqladmin -u root password "${MYSQL_PASSWORD}" mysqladmin -u root --password="${MYSQL_PASSWORD}" password "${MYSQL_PASSWORD}" mysql -u root -p${MYSQL_PASSWORD} -e "CREATE DATABASE IF NOT EXISTS ${APP_NAME}; use ${APP_NAME}; set global storage_engine=INNODB;" # install nginx rpm -Uhv http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm yum install -y nginx cat > /etc/nginx/conf.d/default.conf <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF service nginx start chkconfig nginx on ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy!

Here is how to install the package on a Ubuntu 14.04 Trusty 64bits server:

wget -qO - https://deb.packager.io/key | sudo apt-key add - echo "deb https://deb.packager.io/gh/pkgr/gogs trusty pkgr" | sudo tee /etc/apt/sources.list.d/gogs.list sudo apt-get update sudo apt-get install gogs*=0.9.113-1483413028.e8c3e9b.trusty

You can also download the raw package.

Here is how you would install MySQL and setup NginX to get a fully working installation: ## Debian/Ubuntu ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql server and database debconf-set-selections <<CONFIG mysql-server-5.5 mysql-server/root_password password ${MYSQL_PASSWORD} mysql-server-5.5 mysql-server/root_password_again password ${MYSQL_PASSWORD} CONFIG apt-get install -y --force-yes mysql-server mysql -uroot -p${MYSQL_PASSWORD} -e "create database if not exists ${APP_NAME};" # setup nginx configuration apt-get install -y nginx cat > /etc/nginx/sites-available/default <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF sudo service nginx restart ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy! ## CentOS/RHEL ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql yum install mysql-server -y service mysql-server start chkconfig mysql-server mysqladmin -u root password "${MYSQL_PASSWORD}" mysqladmin -u root --password="${MYSQL_PASSWORD}" password "${MYSQL_PASSWORD}" mysql -u root -p${MYSQL_PASSWORD} -e "CREATE DATABASE IF NOT EXISTS ${APP_NAME}; use ${APP_NAME}; set global storage_engine=INNODB;" # install nginx rpm -Uhv http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm yum install -y nginx cat > /etc/nginx/conf.d/default.conf <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF service nginx start chkconfig nginx on ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy!

Here is how to install the package on a Ubuntu 16.04 Xenial 64bits server:

wget -qO - https://deb.packager.io/key | sudo apt-key add - echo "deb https://deb.packager.io/gh/pkgr/gogs xenial pkgr" | sudo tee /etc/apt/sources.list.d/gogs.list sudo apt-get update sudo apt-get install gogs*=0.9.113-1483413028.e8c3e9b.xenial

You can also download the raw package.

Here is how you would install MySQL and setup NginX to get a fully working installation: ## Debian/Ubuntu ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql server and database debconf-set-selections <<CONFIG mysql-server-5.5 mysql-server/root_password password ${MYSQL_PASSWORD} mysql-server-5.5 mysql-server/root_password_again password ${MYSQL_PASSWORD} CONFIG apt-get install -y --force-yes mysql-server mysql -uroot -p${MYSQL_PASSWORD} -e "create database if not exists ${APP_NAME};" # setup nginx configuration apt-get install -y nginx cat > /etc/nginx/sites-available/default <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF sudo service nginx restart ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy! ## CentOS/RHEL ``` APP_NAME="gogs" MYSQL_PASSWORD="change_me" HOSTNAME="example.com" # setup mysql yum install mysql-server -y service mysql-server start chkconfig mysql-server mysqladmin -u root password "${MYSQL_PASSWORD}" mysqladmin -u root --password="${MYSQL_PASSWORD}" password "${MYSQL_PASSWORD}" mysql -u root -p${MYSQL_PASSWORD} -e "CREATE DATABASE IF NOT EXISTS ${APP_NAME}; use ${APP_NAME}; set global storage_engine=INNODB;" # install nginx rpm -Uhv http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm yum install -y nginx cat > /etc/nginx/conf.d/default.conf <<EOF server { listen 80; server_name ${HOSTNAME}; location / { proxy_pass http://localhost:6000; } } EOF service nginx start chkconfig nginx on ``` Now, access `http://${HOSTNAME}` and finish the installation process. Easy!