wewe-rss
wewe-rss copied to clipboard
Zeabur部署失败的和Railway不允许部署项目的可以用huggingface部署
强烈推荐https://sugar404.notion.site/huggingface-wewe-rss-0cc8d00b9e0d4a71a8b2ec541ebe58dc 本篇教程
解决了上传文件的问题,同时有更新方法
building或者 preparing space 解决办法 https://github.com/cooderl/wewe-rss/issues/32#issuecomment-2545585313
以下为老版方案
操作步骤
- 使用Railway的免费额度部署mysql数据库
- 下载were-rss项目
- huggingface创建空间,建议先公开,不愿意公开可以后续修改,否则
SERVER_ORIGIN_URL会没有url - 切换到files页面
然后上传除README.md的所有文件
- 提交后需要修改2个地方
1.追加
app_port: 40002.添加环境变量 环境变量在Settings选项卡下 名称为
Variables and secrets,自行添加所需变量 如果你不知Settings在哪,请看步骤4的图片,files右边两个按钮处便是SettingsDATABASE_URL在Railway获取,AUTH_CODE默认为1234567,如果你修改了,请填入你修改后的值,SERVER_ORIGIN_URL的路径按下图片操作会出现一个窗口,在窗口中的Direct URL下然后就完成了,成功图片
感谢老铁!
感谢
感谢,我在hugging face上部署完之后点击进去显示
{"statusCode":500,"message":"Internal server error"}
log 显示
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [NestFactory] Starting Nest application...
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [InstanceLoader] PrismaModule dependencies initialized +45ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +0ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +1ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +9ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [InstanceLoader] ThrottlerModule dependencies initialized +32ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [InstanceLoader] TrpcModule dependencies initialized +7ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [InstanceLoader] AppModule dependencies initialized +1ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [InstanceLoader] FeedsModule dependencies initialized +5ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [RoutesResolver] AppController {/}: +73ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [RouterExplorer] Mapped {/, GET} route +12ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [RouterExplorer] Mapped {/robots.txt, GET} route +0ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [RouterExplorer] Mapped {/favicon.ico, GET} route +1ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [RouterExplorer] Mapped {/dash*, GET} route +0ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [RoutesResolver] FeedsController {/feeds}: +7ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [RouterExplorer] Mapped {/feeds, GET} route +1ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [RouterExplorer] Mapped {/feeds/all.(json|rss|atom), GET} route +0ms
[Nest] 73 - 03/03/2024, 11:38:31 AM LOG [RouterExplorer] Mapped {/feeds/:feed, GET} route +1ms
[Nest] 73 - 03/03/2024, 11:38:32 AM LOG [NestApplication] Nest application successfully started +428ms
Server is running at http://0.0.0.0:4000
[Nest] 73 - 03/03/2024, 11:39:27 AM ERROR [ExceptionsHandler] Failed to lookup view "index.hbs" in views directory "/app/client"
Error: Failed to lookup view "index.hbs" in views directory "/app/client"
at Function.render (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/application.js:597:17)
at ServerResponse.render (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/response.js:1039:7)
at ExpressAdapter.render (/app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]/node_modules/@nestjs/platform-express/adapters/express-adapter.js:71:25)
at RouterResponseController.render (/app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-response-controller.js:29:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-execution-context.js:158:24
at async /app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-execution-context.js:47:13
at async /app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-proxy.js:9:17
[Nest] 73 - 03/03/2024, 11:41:57 AM ERROR [ExceptionsHandler] Failed to lookup view "index.hbs" in views directory "/app/client"
想问一下这种问题有人遇到过么?谢谢
你的文件全部上传了吗,app_port: 4000加了吗 @xiki-tempula
抱歉 我报相同错误,所有步骤我都加了,包括app_port: 4000 唯一我觉得有问题的是第一步用railway创建mysql数据库。我的步骤如下:
- 注册railway账号,然后直接点击创建“mysql”,接着它就自动完成了,未修改任何东西。
- 上网搜了下如何复制URL,所以在mysql-variables-MYSQL_URL中复制并添加到新的variable里,地址如:mysql://root:[email protected]:12345/railway
其他俩变量,我是:
- AUTH_CODE默认为1234567(因为我不知道怎么修改,所以只跟着步骤走,没动过任何东西)
- SERVER_ORIGIN_URL填了Direct URL
麻烦你再帮我看下我是哪里填错了呗,谢谢!!
@cooderl @candies404
在MYSQL_URL这里拿,一模一样复制到huggingface的环境变量就可以了 ,如果还不行可以加我qq2814871461,帮你远程一下
这个Direct URL环境变量你不会真填Direct URL这个值吧
@DelmarHuang @xiki-tempula 是否解决了呢
这个Direct URL环境变量你不会真填Direct URL这个值吧
谢谢,但macOS的QQ好像不支持远程🤦。。。
然后,是的,我是直接填了direct URL的值,就https开头的网址,如图。不然,应该填啥啊😂 @candies404
https://www.raylink.live/,下一个我帮你远程看一下 ,我怕你真填direct URL
https://www.raylink.live/,下一个我帮你远程看一下 ,我怕你真填direct URL
@candies404 麻烦了!!太感谢了!!
我的设备码:138800281 访问密码:j8PMde9d
我建议去掉mysql的要求,改成sqlite吧,部署要容易的多。并且基本都是自己使用,数据库不会成为瓶颈
AUTH_CODE是文中的“1234567“
还是
仓库readme中的“123567”
服务接口请求授权码 - AUTH_CODE=123567
报同样错误,“{"statusCode":500,"message":"Internal server error"}” 请问有解决办法吗?
和log中“Server is running at http://0.0.0.0:4000”是否有关
报同样错误,请问最后是怎么解决的呢?同macos
{"statusCode":500,"message":"Internal server error"}
log
Server is running at http://0.0.0.0:4000
[Nest] 74 - 03/05/2024, 3:36:41 AM ERROR [ExceptionsHandler] Failed to lookup view "index.hbs" in views directory "/app/client"
Error: Failed to lookup view "index.hbs" in views directory "/app/client"
at Function.render (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/application.js:597:17)
at ServerResponse.render (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/response.js:1039:7)
at ExpressAdapter.render (/app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]/node_modules/@nestjs/platform-express/adapters/express-adapter.js:71:25)
at RouterResponseController.render (/app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-response-controller.js:29:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-execution-context.js:158:24
at async /app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-execution-context.js:47:13
at async /app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-proxy.js:9:17
[Nest] 74 - 03/05/2024, 3:36:43 AM ERROR [ExceptionsHandler] Failed to lookup view "index.hbs" in views directory "/app/client"
Error: Failed to lookup view "index.hbs" in views directory "/app/client"
at Function.render (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/application.js:597:17)
at ServerResponse.render (/app/node_modules/.pnpm/[email protected]/node_modules/express/lib/response.js:1039:7)
at ExpressAdapter.render (/app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]/node_modules/@nestjs/platform-express/adapters/express-adapter.js:71:25)
at RouterResponseController.render (/app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-response-controller.js:29:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-execution-context.js:158:24
at async /app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-execution-context.js:47:13
at async /app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core/router/router-proxy.js:9:17
请问这是什么情况,是还要添加其他变量吗?(我按照步骤,端口和3个变量都添加了
不需要Run 项目会自动编译 @proteincontent
我建议去掉mysql的要求,改成sqlite吧,部署要容易的多。并且基本都是自己使用,数据库不会成为瓶颈
那你应该另起issue,不是在这里😀
不需要Run 项目会自动编译 @proteincontent
你好,能帮我看下吗,我又重新弄了一遍,可是还是好像不行,port和三个变量我都添加了
https://www.raylink.live/ 下载私发你的设备码和密码到qq 2814871461 @proteincontent
同MacOS,同样的问题,我的解决方案是:检查并确保自己全部上传了所有文件。 注意是所有文件及文件夹(README)除外。建议看一下是不是有mac的隐藏文件夹未上传,不确定index.hbs无法渲染的问题,是否因此产生。但抱着试一试的心态上传后,问题确实被解决。 建议尝试一下 @Jasaxion
确信,不注意看教程
更详细的教程,同时标注了常见错误链接
一样的问题,检查README同级目录下的隐藏文件是否上传
建议加一下,在上传文件的时候,如果是OSX系统,按cmd+shift+.这样会显示全部文件,再进行脱衣,这样才可以把所有文件传上去。
我建议去掉mysql的要求,改成sqlite吧,部署要容易的多。并且基本都是自己使用,数据库不会成为瓶颈
老哥 能不能帮我部署一下 纯小白不太懂
建议加一下,在上传文件的时候,如果是OSX系统,按
cmd+shift+.这样会显示全部文件,再进行脱衣,这样才可以把所有文件传上去。
已添加,感谢
一样的问题,检查README同级目录下的隐藏文件是否上传
上传文件这个真的要注意一下,我一开始是把大的文件夹上传,提示 HF dock 错误,因为后面readme跟大文件夹不在同一个文件夹之内。发现之后修改,点进大的文件夹,把文件夹里面的内容全选,再上传,还是错误。 再检查,文件夹之内还有文件夹,全选上传的时候只上传 了文件,没有把文件夹内容全部上传。 最后,再把几个文件夹再上传, 就成功了。
在上传文件的时候,大家注意一下,一定要上传完整。
太厉害了,安装新版教程部署成功!如果能把微信文章下面的评论也给拉出来,那真是牛逼大发了
感谢大神,部署成功!