md
33 lines
741 Bytes
| 1 | # personal-website |
| 2 | |
| 3 | This is the source and **nginx** config file for my personal website. |
| 4 | |
| 5 | ## deployment |
| 6 | |
| 7 | Given you have the key to the server: |
| 8 | |
| 9 | ```bash |
| 10 | $ scp index.html deploy@api.smbcloud.xyz:/var/www/setoelkahfi.com |
| 11 | ``` |
| 12 | |
| 13 | Of course that will not work because of the `permission denied` error. So, upload to the `home` folder: |
| 14 | |
| 15 | ```bash |
| 16 | $ scp index.html deploy@api.smbcloud.xyz: |
| 17 | $ scp -r src deploy@api.smbcloud.xyz: |
| 18 | ``` |
| 19 | |
| 20 | Then move them to `/var/www/setoelkahfi.com/`: |
| 21 | |
| 22 | ```bash |
| 23 | $ sudo mv index.html /var/www/setoelkahfi.com/ |
| 24 | $ sudo mv src /var/www/setoelkahfi.com/src |
| 25 | ``` |
| 26 | |
| 27 | ## nginx |
| 28 | |
| 29 | Download the **nginx** config for this website: |
| 30 | |
| 31 | ```bash |
| 32 | $ scp deploy@api.smbcloud.xyz:/etc/nginx/sites-enabled/setoelkahfi.com .smb/nginx-setoelkahfi.com |
| 33 | ``` |