Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Installation

Chan, Danny edited this page Aug 27, 2015 · 6 revisions

Installation

環境需求

  • PHP >= 5.4
  • Mcrypt PHP Extension
  • OpenSSL PHP Extension
  • Mbstring PHP Extension

並請確保以下指令可用

  • php
  • composer

第一次部署

  1. git clone 本專案
  2. 建立資料庫
  3. 設定:將.env.example複製為.env並進行資料庫、郵件等設定
  4. 安裝專案:composer install
  5. 設定Key:php artisan key:generate
  6. 自動設置資料表結構:php artisan migrate:install,然後php artisan migrate

更新

(無法順利更新時,才需進行2~4步)

  1. git pull
  2. 檢查.env是否具備.env.example所有欄位,並補上缺漏項目
  3. 更新專案:composer update
  4. 更新資料表結構:php artisan migrate
    (或使用php artisan migrate:refresh重建資料表結構)

Clone this wiki locally