Giter Club home page Giter Club logo

youyongjin.com's Introduction

项目安装


项目安装前提:

1:本机可以执行git命令,或者git客户端

2:可以执行composer安装更新项目

获取项目:

# git clone [email protected]:zhuowenji/youyongjin.com.git

更新项目:

# cd youyongjin.com
# composer update

新增 .env 配置文件:

# cp .env.example .env

生成应用程序密钥

# sudo php artisan key:generate

修改数据库.env文件

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=dealsbank
DB_USERNAME=root
DB_PASSWORD=123456

执行数据库迁移

# php artisan migrate

创建目录

# mkdir -p storage/framework/views
# mkdir -p storage/framework/cache
# mkdir -p storage/framework/sessions

安装完成后给予 storage 权限:

# chmod -R 777 storage

over!

composer 国内镜像

composer config -g repo.packagist composer https://packagist.phpcomposer.com

nginx 配置文件(可参考,可自己定义虚拟主机)

server {
    listen       80;
    server_name  youyongjin.com www.youyongjin.com;
    root /project/youyongjin/public;
    index  index.html index.htm index.php;

    # php rewrite
    location / {
    try_files $uri $uri/ /index.php?$query_string;
    }
    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }

    access_log /project/logs/youyongjin.com.log;
    error_log  /project/logs/youyongjin.com.log;
}

youyongjin.com's People

Contributors

zhuowenji avatar

Watchers

 avatar

Forkers

hi-noikiy

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.