Closed KaitoHH closed 5 years ago
首先,如果我直接执行now命令,它会报下面这个错误
now
You defined 1 build that did not match any source files (please ensure they are NOT defined in .nowignore)
所以修改了now.json文件变成如下形式
now.json
{ "version": 2, "builds": [{ "src": "*/*.php", "use": "@now/php" }] }
重新执行now是可以成功部署的,但是访问<url>/api/login.php时提示没有权限。
<url>/api/login.php
由于同样的配置文件,在我自己的主机上能正确部署,因此配置文件应当是没有问题的。我同样修改了disqus设置中对应的回调地址,但问题依旧。
now.json 我改改,now.sh 貌似没有在目录下写文件的权限,目前需要将 config.php 文件的 USE_TEMP 定义为 true
config.php
USE_TEMP
true
首先,如果我直接执行
now
命令,它会报下面这个错误所以修改了
now.json
文件变成如下形式重新执行
now
是可以成功部署的,但是访问<url>/api/login.php
时提示没有权限。由于同样的配置文件,在我自己的主机上能正确部署,因此配置文件应当是没有问题的。我同样修改了disqus设置中对应的回调地址,但问题依旧。