Isto eliminará a páxina "In House Without Docker"
. Por favor, asegúrate de que é o que queres.
This Tutorial is written with respect to Ubuntu 16.04. It should work for all tuxish distributions, however, the packages might have different names and their installation could be different.
You will probably need root permission to do this
apt-get install -y --no-install-recommends \
make golang \
git git-annex openssh-server \
sqlite
Here we are going to set up a temporary path for your go libraries (GOPATH). Choose its location wisely.
Please note, this path will not be set permanently (you can make it permanent by e.g. by modifying your .bashrc). If you follow the description below, everything will be installed in a folder called go
inside your home diretory:
export GOPATH=~/go
and now we derive other path:
export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin
export GO15VENDOREXPERIMENT=1
go get golang.org/x/crypto/bcrypt
go get github.com/jteeuwen/go-bindata
go get github.com/G-Node/gin-doi/src
go get github.com/G-Node/git-module
go get gopkg.in/yaml.v2
cd ${GOPATH}/src/github.com/jteeuwen/go-bindata/go-bindata
go install
First, we will ensure that the directory where GIN/Gogs needs to live in is good to go:
rm -rf ${GOPATH}/src/github.com/G-Node/gogs
Now we git clone the latest G-Node gogs version:
git clone -b gin@home https://github.com/G-Node/gogs.git ${GOPATH}/src/github.com/G-Node/gogs
And compile it:
cd ${GOPATH}/src/github.com/G-Node/gogs
make build TAGS="sqlite cert pam"
cd ${GOPATH}/src/github.com/G-Node/gogs
./gogs web
This should get you going and you can now visit the installation page of your GIN on:
http://localhost:3000
After visiting the locally hosted website for the first time, you will be asked to setup quite some things
http://localhost:3000
You can always start you gin server with:
cd ${GOPATH}/src/github.com/G-Node/gogs
./gogs web
again. The configuration is (typically) stored in: ${GOPATH}/src/github.com/G-Node/gogs/customapp.ini
If you want to use the SSH of your server, the setup is a bit more intricate and involves:
ln -sf /data/git /home/git
Isto eliminará a páxina "In House Without Docker"
. Por favor, asegúrate de que é o que queres.