fooleap / disqus-php-api

利用 PHP cURL 转发 Disqus API 请求
MIT License
302 stars 53 forks source link

无法正确在now.json部署 #46

Closed KaitoHH closed 5 years ago

KaitoHH commented 5 years ago

首先,如果我直接执行now命令,它会报下面这个错误

You defined 1 build that did not match any source files (please ensure they are NOT defined in .nowignore)

所以修改了now.json文件变成如下形式

{
  "version": 2,
  "builds": [{ "src": "*/*.php", "use": "@now/php" }]
}

重新执行now是可以成功部署的,但是访问<url>/api/login.php时提示没有权限。

由于同样的配置文件,在我自己的主机上能正确部署,因此配置文件应当是没有问题的。我同样修改了disqus设置中对应的回调地址,但问题依旧。

fooleap commented 5 years ago

now.json 我改改,now.sh 貌似没有在目录下写文件的权限,目前需要将 config.php 文件的 USE_TEMP 定义为 true