-
Notifications
You must be signed in to change notification settings - Fork 2
4.Installation
Linc70J edited this page Sep 20, 2019
·
12 revisions
載入docker模組
git submodule add https://github.com/Linc70J/lavawhale.git docker
發布Dockerfile與設定檔至指定位置,並進入環境參數編輯畫面
客製化專案專屬配置,請詳閱設定檔說明
(cd docker; make publish)
初始化設定
make first-setup
啟動
make start
完成
請修改 deploy/config/build.sh ,根據每個環境的配置不同的建置內容,例如:
if [ ${APP_ENV} = 'PRODUCTION' ]; then \
echo 'Is production';
composer install --no-dev;
fi
if [ ${APP_ENV} = 'STAGING' ]; then \
echo 'Is staging';
composer install;
fi
if [ ${APP_ENV} = 'DEVELOP' ]; then \
echo 'Is develop';
fi
如果你要使用swoole功能,你需要擴展 laravel-swoole 套件,並完成相關設定
make setup-web
排程設定檔位於 deploy/shared/web 資料夾之中,設定完成後重啟服務即可。
排程設定檔位於 deploy/shared/worker 資料夾之中,設定完成後重啟服務即可。