Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // To install
- # To see all (and maybe newer) versions, go to https://github.com/coder/coder/releases
- # Replace USER, PASSWORD, DB_NAME and coder.yourdomain.tld
- version=$(curl -sL https://api.github.com/repos/coder/coder/releases | grep -ioP '\d\.\d\.\d' | head -n 1)
- os=_linux
- arch=_amd64
- wget https://github.com/coder/coder/releases/download/v$version/coder_$version$os$arch.tar.gz
- gunzip coder_$version$os$arch.tar.gz
- tar xvf coder_$version$os$arch.tar
- rm -r LICENSE* *.md *.tar
- mkdir /usr/local/coder
- mv coder /usr/local/coder
- /usr/local/coder/coder server --global-config /usr/local/coder/config --postgres-url postgres://USER:PASSWORD@127.0.0.1/DB_NAME?sslmode=disable --access-url https://coder.yourdomain.tld
- // To uninstall
- rm -r /home/coder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement