-
Notifications
You must be signed in to change notification settings - Fork 211
Installation
Yaroslav Pogrebnyak edited this page May 6, 2019
·
10 revisions
https://snapcraft.io/gobetween
Note: make sure you're on Ubuntu and/or have snap installed: https://docs.snapcraft.io/installing-snapd
sudo snap install gobetween --edge
If installed via snap, gobetween starts as a service.
Config file for snap installation is located here: /var/snap/gobetween/common/gobetween.toml
Startup script is located here: /var/snap/gobetween/current/gobetween.sh
Useful commands
- Check gobetween service:
snap services gobetween
- Show service logs:
snap logs gobetween
- Start service
snap start gobetween
- Stop service
snap stop gobetween
- Uninstall
snap remove gobetween
mkdir gobetween
cd gobetween
curl -s https://api.github.com/repos/yyyar/gobetween/releases | grep browser_download_url | grep linux_386 | cut -d '"' -f 4 | head -n 1 | wget -i -
curl -s https://api.github.com/repos/yyyar/gobetween/releases | grep browser_download_url | grep linux_amd64 | cut -d '"' -f 4 | head -n 1 | wget -i -
tar -zxvf *.tar.gz
vim config/gobetween.toml
sudo gobetween -c config/gobetween.toml
git clone git@github.com:yyyar/gobetween.git
make
sudo -E make install
vim /etc/gobetween.toml
gobetween -c /etc/gobetween.toml
sudo make uninstall
Pull image from public Docker Hub
docker pull yyyar/gobetween
Specify port mappings (80 docker host port to 80 container port ) and place gobetween.toml
to /path/to/gobetween.toml
docker run -p 80:80 -v /path/to/conf:/etc/gobetween/conf/:rw yyyar/gobetween
c:\path\to\gobetween -c c:\path\to\gobetween.toml