请问,如何把laravel项目部署到服务器上?
composer之类的东西呢?完全没有概念,请大牛详细解答,菜鸟我不胜感激!
2016最新的阿里云lnmp部署laravel,我觉得很不错的,你们可以参考下:http://blog.earnp.com/article/41
嗯,最近都在接触laravel,写一下吧,答案如下:
文章教程:
服务器环境搭建:http://.com/a/1190000002955111
服务器部署laravel: http://.com/a/1190000002955120
视频教程:
阿里云部署laravel: https://laravist.com/series/something-that-a-little-helpful
composer系列视频:https://laravist.com/series/you-must-use-composer
最后,最近个人写的laravist站点就是使用的laravel,所以说有一点点经验吧。
以上
https://laravel.tw/docs/5.1/installation 很少看到larave的
先安装好composer,http://www.phpcomposer.com/
在shell运行composer create-project laravel/laravel 你的路径 版本
给storage
文件夹写文件权限,
设置伪静态:
nginx:
location / {
try_files $uri $uri/ /index.php?$query_string;
}
apache:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]