Last active
November 4, 2019 02:33
-
-
Save geekdada/f3de25c1de41f7f8ba408a5937e91273 to your computer and use it in GitHub Desktop.
Deploy Surgio gateway to my own server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const gateway = require('surgio/build/gateway'); | |
const http = require('http'); | |
http.createServer(gateway.createHttpServer()).listen(9000, () => { | |
console.log('Your app is running at http://127.0.0.1:9000'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
index.js
必须放在 Surgio 规则仓库内。运行: