我只是不能部署Laravel 5应用程序


I just Cant Deploy a Laravel 5 App

我正在尝试部署一个laravel 5应用程序。

因此,我使用了来自数字海洋的LAMP + PHPADMIN图像

我安装了git并下载了我的laravel 5应用程序,之后,我安装了composer并使用了"composer install"命令。

所以,当我尝试访问localhost/myapp/public,它只是一个白屏,当我尝试一些路由,我得到404从Apache。

我错过了什么?

该框架附带了一个公共/。htaccess文件,用于允许没有index.php的url。如果你使用Apache来服务你的Laravel应用,一定要启用mod_rewrite模块。

如果Laravel附带的。htaccess文件不能在你的Apache安装中使用,试试这个:

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]