Skip to content

Commit 4579ed4

Browse files
committed
updated README for heroku deployment
1 parent f16da56 commit 4579ed4

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ user browser +-------------->+ siteproxy +-------> wikipedia
3838
5. other websites.
3939
```
4040

41-
## 部署到now.sh服务器/now.sh deployment
41+
## now.sh deployment (local deployment)
4242
```
4343
1. register one now.sh account from https://zeit.co/home
4444
2. npm install -g now
@@ -50,7 +50,28 @@ user browser +-------------->+ siteproxy +-------> wikipedia
5050
7. change "blockedSites = ['www.youtube.com', 'm.youtube.com']" ====> "blockedSites = []" if you want to support youtube
5151
8. now --prod
5252
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
5363
```
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+
5475
## 部署到vps服务器/vps deployment
5576
```
5677
1. create ssl website(using certbot and nginx), and configure nginx as follow:

0 commit comments

Comments
 (0)