
炒鸡简单,三步走,一分钟:
# 下载代码 git clone --depth 1 [email protected]:amio/now-go.git # 编辑 config.json 配置 tinyurl 定向规则 vim now-go/config.json # 发布到 now.sh now now-go 搞定!
再多一步的话,还可以给发布好的 now-go-xxxxx.now.sh 设置个短名字:
now alias set api-ownv3nc9f8.now.sh my-tinyurl.now.sh 如果你还没用过 now,可以 npm install -g now 来安装这个超赞的 Node.js 应用部署工具 /平台( now.sh )。分分钟发布 Node.js 应用。
now,如果你还不知道的话千万别错过: https://zeit.co/now 
Now go, let the legend come back to life!
忘了附上示例了
https://go.now.sh 的配置:
{ "routes": { "home": "https://github.com/amio/now-go", "author": "https://github.com/amio", "/": "Now go, let the legend come back to life!", "?": "What are you looking for" }, "port": 3000 } 部署效果:
一点备注:
1 ivmm 2016 年 8 月 30 日 默认端口 3000 ,是不是还要 80 的 nginx 反代一下? |
2 amio OP @ivmm 在 now.sh 上不用,其他环境的话 就自己看情况了(直接 80 或者 nginx 反代一下) “ NOTE: npm start has to listen on a port. It can be any port!” https://zeit.co/now/#get-started |
3 htfy96 2016 年 8 月 31 日 via Android 之前搭过一个 后来发现被广告滥用了,最后收到了 takedown request 就关了 |
4 amio OP 这个不怕,因为配置代码是自己写在服务器 config.json 的,没有 http api 可以加映射 |
6 yangg 2016 年 8 月 31 日 windows git bash 上无法登录 。。。 |
9 amio OP @woorz 后来有更新,最新的使用方法和示例参见 repo 吧 https://github.com/amio/now-go |