@@ -38,7 +38,7 @@ user browser +-------------->+ siteproxy +-------> wikipedia
38
38
5. other websites.
39
39
```
40
40
41
- ## 部署到now.sh服务器/ now.sh deployment
41
+ ## now.sh deployment (local deployment)
42
42
```
43
43
1. register one now.sh account from https://zeit.co/home
44
44
2. npm install -g now
@@ -50,7 +50,28 @@ user browser +-------------->+ siteproxy +-------> wikipedia
50
50
7. change "blockedSites = ['www.youtube.com', 'm.youtube.com']" ====> "blockedSites = []" if you want to support youtube
51
51
8. now --prod
52
52
9. done
53
+
54
+ ```
55
+ ## 部署到now.sh服务器
56
+ ```
57
+ 1. 注册一个now账户https://zeit.co/home
58
+ 2. 没有github账户的话, 注册一个github账户,fork本repo
59
+ 3. 在now的控制台里面创建一个应用, 且绑定到你刚才fork的repo上, 会得到一个域名类似的域名:your-domain-name.now.sh
60
+ 4. 在github上修改你刚fork的repo, 将config.js里的serverName修改为你的新域名:
61
+ serverName: 'siteproxy.netptop.com' ====> 'your-domain-name.now.sh'
62
+ 5. 现在可以在浏览器里面访问你的新域名了: https://your-domain-name.now.sh
53
63
```
64
+ ## 部署到heroku服务器
65
+ ```
66
+ 1. 注册一个heroku账户: https://www.heroku.com/
67
+ 2. 没有github账户的话, 注册一个github账户,fork本repo
68
+ 3. 在heroku的控制台里面创建一个应用, 且绑定到你刚才fork的repo上, 会得到一个域名类似的域名:your-domain-name.herokuapp.com
69
+ 4. 在github上修改你刚fork的repo, 将procfile里的域名修改为你的新域名:
70
+ "web: herokuAddr=siteproxy.herokuapp.com npm run start"
71
+ ====> "web: herokuAddr=your-domain-name.herokuapp.com npm run start"
72
+ 5. 现在可以在浏览器里面访问你的新域名了: https://your-domain-name.now.sh
73
+ ```
74
+
54
75
## 部署到vps服务器/vps deployment
55
76
```
56
77
1. create ssl website(using certbot and nginx), and configure nginx as follow:
0 commit comments