Surge
免費靜態網頁空間
安裝
1
| npm install --global surge
|
請先安裝 Node.js
新增一個網頁
1 2 3 4 5 6 7 8 9 10 11 12
| <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <P>Hello! world</P> </body> </html>
|

輸入 surge 指令

請自行輸入email 跟 密碼,還可以自訂Domain
上傳成功就可以看到網頁

http://ste5022424.surge.sh/index.html
部屬到自己定義的網址
1
| surge --domain ste5022424.surge.sh
|

設定 https
1
| surge --domain https://ste5022424.surge.sh
|

參考網址