Connect-CMS Update 手順
2026年4月12日 20時54分 [okamoto]
1.カレントディレクトリの移動
cd /var/www/html/connect-cms/
2.メンテナンスモードON
php artisan down
3.アップデートの実行
git checkout master
git pull && git checkout $(git describe --tags --abbrev=0)
4.Composerで最新のライブラリをダウンロード
php -d allow_url_fopen=1 composer.phar install --no-dev
5.コンフィグキャッシュのクリア
php artisan config:clear
6.DBマイグレーション
php artisan migrate
Do you really wish to run this command? (yes/no) [no]:
> yes
7.seederでデータインポート
php artisan db:seed
Do you really wish to run this command? (yes/no) [no]:
> yes
8.ディレクトリパーミッション設定
chown -R www-data:www-data storage
chown -R www-data:www-data bootstrap/cache
chown -R www-data:www-data vendor/tecnickcom/tcpdf/fonts
chown -R www-data:www-data public/themes/Users
chmod -R u+wr storage
chmod -R u+wr bootstrap/cache
chmod -R u+wr vendor/tecnickcom/tcpdf/fonts
chmod -R u+wr public/themes/Users
9.メンテナンスモードOFF
php artisan up