新版本的博客,请阅读 https://github.com/moell-peng/moell-blog/blob/master/readme.md
源码地址:Github
git clone https://github.com/moell-peng/moell-blog.git
参照Laravel文档:Laravel5.2 Document PHP : 5.6+ MYSQL : 5.6+
curl -sS https://getcomposer.org/installer | php
cd moell-blog
composer install
cp .env.example .env
php artisan key:generate
APP_DEBUG=true #关闭调试
DB_HOST= #数据库地址
DB_PORT=3306 #数据库端口
DB_DATABASE= #数据库名称
DB_USERNAME= #数据库用户
DB_PASSWORD= #数据库密码
php artisan migrate
php artisan db:seed
Nginx
location / {
root /www/moell-blog/public;
try_files $uri $uri/ /index.php?$query_string;
index index.php index.html index.htm;
}
chown -R nginx:nginx storage/
chmod -R 755 public/
chown -R nginx:nginx public/
部署到线上可选,本地测试无需执行
php artisan optimize
php artisan config:cache
php artisan route:cache
后台地址: 域名/backend email:moell@foxmail.com password : moell.cn
如果本项目对你有帮助,欢迎 star 本项目。