Advertisement
Justman10000

Manage Coder

Oct 10th, 2023 (edited)
1,179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.75 KB | None | 0 0
  1. // To install
  2. # To see all (and maybe newer) versions, go to https://github.com/coder/coder/releases
  3. # Replace USER, PASSWORD, DB_NAME and coder.yourdomain.tld
  4. version=$(curl -sL https://api.github.com/repos/coder/coder/releases | grep -ioP '\d\.\d\.\d' | head -n 1)
  5. os=_linux
  6. arch=_amd64
  7.  
  8. wget https://github.com/coder/coder/releases/download/v$version/coder_$version$os$arch.tar.gz
  9. gunzip coder_$version$os$arch.tar.gz
  10. tar xvf coder_$version$os$arch.tar
  11. rm -r LICENSE* *.md *.tar
  12. mkdir /usr/local/coder
  13. mv coder /usr/local/coder
  14. /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
  15.  
  16. // To uninstall
  17. rm -r /home/coder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement