-
Notifications
You must be signed in to change notification settings - Fork 24
Update to 1.5
Kosuke Tanabe edited this page Jul 26, 2025
·
28 revisions
Next-L Enju Leaf 1.5では、アップロードしたファイルの保存にActiveStorageを使用しており、このマイグレーション作業が必要になります。
警告: 必ずアプリケーションとデータベースのバックアップを取得してください!
注意: Next-L Enju Leaf 1.5へのアップデートの前に、1.4.10以上にアップデートしておいてください。
Enjuを停止します。
cd enju_leaf
docker compose down新しいEnjuを取得します。
git fetch
git checkout 1.5
git pulldocker-compose.override.ymlを作成します。
cp docker-compose.override.example.yml docker-compose.override.ymlコンテナをビルドします。
docker compose buildデータベースのマイグレーションを実行します。
docker compose run --rm web bin/rake enju_leaf:backfill_migration_versions
docker compose run --rm web bin/rake db:create
docker compose run --rm web bin/rake db:prepareアップロードされたファイルのマイグレーションを実行します。
docker compose run --rm web bin/rake enju_leaf:migrate_attachments識別子のレコードのマイグレーションを実行します。
docker compose run --rm web bin/rake enju_leaf:migrate_identifiersキャッシュをクリアします。
docker compose run --rm web bin/rails r "Rails.cache.clear"アプリケーションを再起動します。
docker compose up -dhttp://localhost:8080 を開き、アクセスできることを確認します。