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

添加now.json缺失的文件 #47

Open
KaitoHH opened this issue Jun 5, 2019 · 1 comment
Open

添加now.json缺失的文件 #47

KaitoHH opened this issue Jun 5, 2019 · 1 comment

Comments

@KaitoHH
Copy link

KaitoHH commented Jun 5, 2019

你好,使用了修改之后的now.json仍然有一些文件缺失,所以我又做了略微的修改

"builds": [
    { "src": "api/*.php", "use": "@now/php" },
    { "src": "api/PHPMailer/*.php", "use": "@now/php" },
    { "src": "api/emojione/*.php", "use": "@now/php" },
    { "src": "api/emojione/src/*.php", "use": "@now/php" },
    { "src": "dist/*", "use": "@now/static" }
  ]

现在可以正确部署了。

但是缓存的持久化似乎仍然不行,导致邮件之类的功能工作不正常,这可能是由于写本地文件系统在now.sh, heroku之类的平台上无法持久化导致的,现在看起来还不能直接解决这个问题。

或许解决的办法只有将缓存持久化到第三方文件系统或者数据库了。

@fooleap
Copy link
Owner

fooleap commented Jun 6, 2019

不好意思,我没仔细测试, 我把对应代码也更新一下。
你说的对,发邮件只是针对非登录会员,且需要存储邮箱号,放临时文件不是很好。
目前放在 now.sh 等平台,比起虚机或 VPS 差点。

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