0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

EC-CUBE4 Blue-Green Deployment

Last updated at Posted at 2025-10-28

EC-CUBE4 でシンボリックリンク切り替えによる Blue-Green Deployment をする場合は
いくつかのディレクトリ(= 各世代で共有するデータ)をシンボリックリンクにする。

対象ディレクトリ

  • <PROJECT_DIR>/app/Plugin
  • <PROJECT_DIR>/app/PluginData
  • <PROJECT_DIR>/app/template/plugin
  • <PROJECT_DIR>/html/plugin
  • <PROJECT_DIR>/html/upload
  • <PROJECT_DIR>/html/user_data
  • <PROJECT_DIR>/var/sessions

コマンド例

共有するディレクトリの準備

cd <SHARED_DIR>
mkdir -p app/{Plugin,PluginData,var/sessions,template/plugin}
mkdir -p html/{plugin,upload,user_data}

シンボリックリンク作成

cd <DEPLOY_DIR>/latest/app
# cp -ap Plugin/* <SHARED_DIR>/app/Plugin/ # 必要に応じて
# rm -rf Plugin                           # 必要に応じて
ln -s <SHARED_DIR>/app/Plugin Plugin

※ 対象ディレクトリを全て実施する

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?