GithubHelp home page GithubHelp logo

siaoynli / lablog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wangningkai/lablog

0.0 0.0 0.0 29.94 MB

🔊 基于Laravel5个人博客系统

Home Page: https://imwnk.cn

PHP 45.17% Vue 0.08% HTML 54.75%

lablog's Introduction

Lablog

简介

  • 1.博客基于最新 PHP 框架 laravel5 搭建而成;
  • 2.前后基于adminlte响应式页面布局,适配PC、平板、手机;
  • 3.后台支持QQ、微博、github第三方登录;
  • 4.集成优秀的Markdown文本编辑器,支持图片拖拽上传;
  • 5.后台基于路由搭建完整的权限控制系统,支持多后台用户。
  • 6.后台集成SM.MS上传接口,方便用户上传图片
  • 7.后台日志查看

链接

安装使用

git clone https://gitee.com/wangningkai/Lablog.git tmp 
mv tmp/.git . 
rm -rf tmp 
git reset --hard 
composer install -vvv 
php artisan lablog:install
php artisan lablog:migrate 
chmod -R 755 storage/
chown -R www:www *

注意事项

由于部分扩展的要求,需要安装以下php扩展
  • FileInfo扩展
  • Imagick扩展
  • GD库扩展
  • Redis扩展
可选扩展
  • Beanstalkd 队列
博客加入push自动更新部署脚本,使用webhooks具体路由
http(s)://{host}/hook/(gogs/gitee)
自动更新脚本文件
#!/usr/bin/env bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/php/bin:/usr/local/sbin:~/bin
export PATH

#=================================================
#       System Required: CentOS
#       Description: Laravel/Lumen Update Shell
#       Author: IMWNK
#       Blog: https://imwnk.cn
#=================================================

action=$1
path=$2

Green_font_prefix="\033[32m" && Red_font_prefix="\033[31m" && Green_background_prefix="\033[42;37m" && Red_background_prefix="\033[41;37m" && Font_color_suffix="\033[0m"
Info="${Green_font_prefix}[Info]${Font_color_suffix}"
Error="${Red_font_prefix}[Error]${Font_color_suffix}"
Tip="${Green_font_prefix}[Tip]${Font_color_suffix}"

if [[ ! -n ${action} ]]; then
        echo -e "${Error} Action Invalid" && exit 1
else
        echo -e "${Info} Your Action Is ${Red_font_prefix}[ ${action} ]${Font_color_suffix}"
fi

if [[ ! -n ${path} ]]; then
        echo -e "${Error} Path Invalid" && exit 1
else
        if [[ ! -d ${path} ]];then
                echo -e "${Error} Path Invalid" && exit 1
        else
                echo -e "${Info} Your Path Is ${Red_font_prefix}[ ${path} ]${Font_color_suffix}"
        fi
fi

cd ${path}
echo -e "${Tip} Start Time ${Green_font_prefix} [`date "+%Y-%m-%d %H:%M:%S"`] ${Font_color_suffix}"
case ${action} in
        pull)
        git fetch --all
        git reset --hard origin/master
        chown -R www:www *
;;
        clear)
        # only for lablog
        /usr/local/php/bin/php artisan flush:cache
        chown -R www:www *
;;
        update)
        git fetch --all
        git reset --hard origin/master
        /usr/local/bin/composer install
        /usr/local/bin/composer update
        chown -R www:www *
;;
esac
echo -e "${Tip} End Time ${Green_font_prefix}[`date "+%Y-%m-%d %H:%M:%S"`]${Font_color_suffix}"

第三方配置在.env文件配置

q.png

分支说明

  • release: 测试相对稳定代码

  • master: 博客更新维护最新代码

版权

项目使用 MIT 协议;免费开源可随意使用;

图片演示

前台首页

2018-08-09_141946.png

前台首页(手机)

2018-08-09_142011.png

登录

2018-08-09_142112.png

后台

2018-08-09_142051.png

lablog's People

Contributors

wangningkai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.