mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-25 22:05:51 +03:00
[GH-ISSUE #100] Couldn't find a D1 DB with the name or binding 'dev' in wrangler.toml #41
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @1715819 on GitHub (Apr 4, 2024).
Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/100
这个问题怎么解决呢
@1715819 commented on GitHub (Apr 4, 2024):
ok,解决了
@Zding89 commented on GitHub (Apr 24, 2024):
请问怎么解决?
@dreamhunter2333 commented on GitHub (Apr 25, 2024):
参考 D1 的配置和绑定到 worker
https://temp-mail-docs.awsl.uk/zh/guide/cli/d1.html
@EaxMov commented on GitHub (May 8, 2024):
不知道是不是文档不全还是什么问题,要手动创建一个wrangler.toml文件
然后写入以下内容
d1_databases
binding = "DB" # i.e. available in your Worker on env.DB
database_name = "dev"
database_id = "e1f2e29c-c976-4066-959e-d53c1b627f51"
@1715819 commented on GitHub (May 8, 2024):
wrangler d1 execute dev --remote --file=db/schema.sql
试一下这个
@dreamhunter2333 commented on GitHub (May 8, 2024):
了解了,应该是文档的顺序问题,创建文件在 worker 部署那一步,我更新下