Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在自己web服务器上需要什么环境 #18

Open
github-plus opened this issue Aug 18, 2020 · 3 comments
Open

在自己web服务器上需要什么环境 #18

github-plus opened this issue Aug 18, 2020 · 3 comments

Comments

@github-plus
Copy link

想问下在自己web服务器上搭建需要哪些环境

@iwestlin
Copy link
Owner

@iwestlin
Copy link
Owner

挖坟,我刚试了下用cf官方开源的workerd,成功运行了gdshare

做法可以参考 https://github.com/cloudflare/workerd/blob/main/samples/helloworld/README.md

只需要把worker.js的内容替换成template.js里的就行了,如果需要修改监听端口,可以在config.capnp文件里改。

也就是说只需要三个文件,一个是workerd的二进制文件,一个是 config.capnp,另一个则是要运行的js文件。

@iwestlin
Copy link
Owner

有人甚至配合workerd写出了一套cf的替代品:https://github.com/VaalaCat/vorker

但我还没试过,有兴趣可以看看……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants