【EC-CUBE4】よく使うコマンド

スポンサーリンク
スポンサーリンク

こんにちは!@vVv_kenshi_vVvです!

スポンサーリンク

使用頻度の高いコマンド

キャッシュクリア

twigファイルの反映後やプロキシー更新後に使用する

Bash
bin/console c:c --no-warmup

プロキシ作成・再構築

Bash
bin/console eccube:generate:proxies

本体・カスタマイズ・プラグインのEntityをまとめている

下記フォルダに作成される※削除してもコマンドで作り直せる
eccube/app/proxy/entity/src:src + customizeのentity
eccube/app/proxy/entity/app:pluginのEntity

マイグレーションコマンド

全ての実行されていないマイグレーション実行

Bash
bin/console doctrine:migrations:migrate

空のマイグレーションファイル作成

Bash
bin/console doctrine:migrations:generate

マイグレーションファイルを指定して実行

Bash
bin/console doctrine:migrations:execute 20210324060716 --up
bin/console doctrine:migrations:execute 20210324060716 --down

スキーマ更新

EntityからDBへ反映

Bash
bin/console doctrine:schema:update --dump-sql --force
タイトルとURLをコピーしました