Mercurial Hosting > luan
comparison host/doc/install.txt @ 1632:0344a535b1db
add doc
| author | fffilimonov |
|---|---|
| date | Tue, 14 Dec 2021 07:41:01 +0000 |
| parents | |
| children | 8066b8882732 |
comparison
equal
deleted
inserted
replaced
| 1631:35c626c06dd5 | 1632:0344a535b1db |
|---|---|
| 1 Install on local machine: | |
| 2 | |
| 3 1) install mercurial | |
| 4 brew install hg | |
| 5 | |
| 6 2) install java | |
| 7 brew tap caskroom/versions | |
| 8 brew install caskroom/cask/java8 | |
| 9 | |
| 10 3) clone repo | |
| 11 hg clone https://hg.luan.software/luan | |
| 12 | |
| 13 4) Install nginx | |
| 14 brew tap denji/nginx | |
| 15 brew install nginx-full | |
| 16 | |
| 17 5) Make sudo nginx without password | |
| 18 add string to /etc/sudoers | |
| 19 %admin ALL=(ALL) NOPASSWD: /usr/local/bin/nginx | |
| 20 | |
| 21 6) compile | |
| 22 ./update.sh | |
| 23 | |
| 24 7) open in browser http://me.luan.software:8080 | |
| 25 | |
| 26 Install on production/test machine: | |
| 27 1 - 6 same | |
| 28 | |
| 29 7) Add startup (macOS) | |
| 30 look at autostart.txt | |
| 31 | |
| 32 8) Configure ssh for working monitoring and backups (example for s1) | |
| 33 create ssh key: ssh-keygen -t rsa -b 4096 -C "administrator@s1.luan.software" (for s1) | |
| 34 add ssh key at test.luan.software: edit file /Users/administrator/.ssh/authorized_keys | |
| 35 | |
| 36 9) Reboot the machine | |
| 37 sudo reboot | |
| 38 | |
| 39 10) Fix PS1 (for s1 example) | |
| 40 echo "PS1='lh-s1:\W\$ '" >> ~/.bash_profile | |
| 41 |
