[英]Upload laravel project on live
How to upload larval project to server? 如何将幼虫项目上传到服务器?
I have uploaded larval website which is perfectly working in local computer, but when I uploaded to server same like as I am uploading other PHP website, but it is not going to view it shows a blank screen. 我已经上传了在本地计算机上可以正常运行的幼虫网站,但是当我将其上传到服务器时,就像上传其他PHP网站一样,但是它不会显示空白屏幕。
Please let me know, how to resolve this issue? 请让我知道,该如何解决?
也复制.env文件或将appkey设置为环境变量
您是否在服务器中安装了laravel并确保php版本和服务器环境符合laravel 5.2文档中的要求
Tips on deploying Laravel: 部署Laravel的提示:
Make sure the server is pointing to public folder not the project folder 确保服务器指向公用文件夹而不是项目文件夹
DocumentRoot
to pointed to public
folder 变化DocumentRoot
到尖到public
文件夹 Change the .env
accordingly. 相应地更改.env
。 Few important values are: 几个重要的值是:
php artisan key:generate
if not available yet 运行php artisan key:generate
如果尚不可用) production
. 需要将环境密钥设置为production
。 This is not super crucial. 这不是超级关键。 It will still working but nice to do it to hide any insecure error messages 它仍然可以工作,但是很高兴隐藏任何不安全的错误消息 Check permissions on the storage directory. 检查存储目录上的权限。 The application need to be able to write to it. 该应用程序需要能够对其进行写入。
You also need to look in the logs: 您还需要查看日志:
storage/logs/laravel.log storage / logs / laravel.log
And look in your webserver error log. 并查看您的网络服务器错误日志。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.