-
Notifications
You must be signed in to change notification settings - Fork 6
Update (アップデート)
Mitsuru Mutaguchi edited this page Dec 10, 2024
·
44 revisions
- Update(アップデート)
- エラー対応
- メンテナンスモード
=========================
1.カレントディレクトリの移動
=========================
・Linux等へのインストールした場合:root権限ある場合
cd /var/www/html/connect-cms/
・Install-XAMPP(Windows+XAMPP)の場合
cd C:\sites\connect_cms_php_7427\htdocs\
・さくらレンタルサーバー(ディレクトリインストール)の場合
cd /home/USERNAME/connect-cms/test01
・Xserverの場合
cd /home/USERNAME/USERNAME.xsrv.jp/connect-cms
・ロリポップの場合
cd /home/users/xx/アカウント/web/connect-cms
・カラフルボックスの場合
cd /home/UserName/connect-cms/test01
他のコマンド例)
cd /var/www/html/connect-cms/
git config --global --add safe.directory /var/www/html/connect-cms/
=========================
2.アップデートの実行 ※アップデート方針に応じて対応したコマンドがあります。
=========================
# masterブランチに切替からgit pullする
git checkout master
・(パターン1)安定版(最新のバージョン)をインストールする
git pull && git checkout $(git describe --tags --abbrev=0)
・さくらレンタルサーバーの場合、最新バージョンを指定してインストールする
git pull
git describe --tags --abbrev=0
v1.0.0 ←最新バージョンが表示される。
git checkout v1.0.0 ←最新バージョンを指定
・(パターン2)安定版(バージョンを指定して)をインストールする
git pull && git checkout v{version}
例)指定するバージョンが1.0.0の場合
git pull && git checkout v1.0.0
・(パターン3)開発版をインストールする
git pull
・(パターン4)Connect-CMS v2 安定版(最新のバージョン)をインストールする
git checkout master
git pull
git checkout 2
git checkout $(git describe --tags --abbrev=0)
・(パターン5)Connect-CMS v2 開発版をインストールする
git checkout master
git pull
git checkout 2
=========================
補足
=========================
・安定版
バージョンを定めて公開する、安定してご利用いただけるものが安定版です。
基本的にはこちらをご利用ください。
・開発版
リリース前の機能を試したい場合は開発版をご利用ください。
従来のインストール / アップデート方法(git pull)では、こちらが適用されます。
注意メッセージですのでスルーで大丈夫です。
ざっくりとした内容:gitのブランチ作らずに切り替わってるよ状態(detached HEAD:切り離されたHEAD)だから注意メッセージ表示したよ
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
(機械翻訳)
あなたは「切り離されたHEAD」の状態にある。あなたは「切り離されたHEAD」状態です。
この状態で行ったコミットは、ブランチに影響を与えることなく破棄できます。
ブランチに戻ることで、どのブランチにも影響を与えずにコミットを破棄できます。
作成したコミットを保持するために新しいブランチを作成したい場合は、次のようにします。
switch コマンドで -c を指定します。例
git switch -c
あるいは、この操作を元に戻すには
git switch -
このアドバイスを無効にするには、設定変数 advice.detachedHead を false にします。
・Linux等へのインストール:root権限ある場合
cd /var/www/html/connect-cms/
php -d allow_url_fopen=1 composer.phar install --no-dev
・Install-XAMPP(Windows+XAMPP)の場合
cd C:\sites\connect_cms_php_7427\htdocs\
C:\sites\connect_cms_php_7427\php\php -d allow_url_fopen=1 composer.phar install --no-dev
・さくらの場合
cd /home/USERNAME/connect-cms/test01
php -d allow_url_fopen=1 composer.phar install --no-dev
・Xserverの場合
cd /home/USERNAME/USERNAME.xsrv.jp/connect-cms
php -d allow_url_fopen=1 composer.phar install --no-dev
・ロリポップの場合
cd /home/users/xx/アカウント/web/connect-cms
php -d allow_url_fopen=1 composer.phar install --no-dev
・カラフルボックスの場合
cd /home/UserName/connect-cms/test01
php -d allow_url_fopen=1 composer.phar install --no-dev
他のコマンド例)
php -d allow_url_fopen=1 /usr/bin/composer install --no-dev
# php artisan config:clear
# php artisan migrate
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes ← yes を入力
# php artisan db:seed
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes ← yes を入力
2021-02-18 以降のアップデートの際は、.env.example
を参考に .env
を1度修正してください。
2021-02-18 以降にConnect-CMSをインストール済みの場合は作業不要です。
※ 2021-02-18 以降のConnect-CMSのLaravelバージョンは 6 です。Laravel6 は当作業不要です。
- リネーム:
QUEUE_DRIVER
をQUEUE_CONNECTION
にリネーム - 削除:
APP_LOG_LEVEL
- 下記追加
LOG_CHANNEL=daily
http(https)://あなたのサイトURL/
// If an error occurs, delete all DB tables, and then re-execute "DB migration" and "Data import with seeder"
// エラーが出る場合、DBテーブルを全削除後、「DBマイグレーション」「seederでデータインポート」を再実行すると動作する
$ git pull
fatal: unsafe repository ('/var/www/html/connect-cms/' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /var/www/html/connect-cms
// 例)Connectのインストールディレクトリが/var/www/html/connect-cmsの場合
git config --global --add safe.directory /var/www/html/connect-cms
$ git checkout master
$ git pull
Updating 3897a58b..9abdff20
error: Your local changes to the following files would be overwritten by merge:
app/Http/Controllers/Auth/LoginController.php
app/Traits/Migration/MigrationNc3ExportTrait.php
Please commit your changes or stash them before you merge.
Aborting
// 修正ファイルをstashで一時退避してからgit pull。その後stash popで元に戻す
git stash
git pull
git stash pop
# php artisan down
# php artisan up
- home
- Overview
- Install
- Install (インストール)(Linux等へのインストール:root権限ある場合)
-
Install-sakura(さくらのレンタルサーバ)
- Install-sakura-root(ドキュメントルート版)
- Install-Xserver(XServer)
- Install-lolipop(ロリポップ-ハイスピードプラン)
- Install-ColorfulBox(カラフルボックス)
- install-CentOS7+PHP7
- Install-XAMPP(Windows+XAMPP)
- install-Docker
- Update
- Plans
- Data
- File Upload
- Design
- Theme(テーマ)
- Font-Icon
- Button(ボタン)
- Display of input error(入力エラーの表示)
- Multi Language
- Policies
- Plugin
- Basic function(基本の関数)
- Opac(蔵書管理)
- OpeningCalendar(開館カレンダー)
- Template(テンプレート)
- Cabinet(キャビネット)
- Whatsnew(新着)
- Search(サイト内検索)
- Approval(承認機能)
- Holidays(祝日管理)
- Menu(メニュー)
-
OriginalPlugin(オリジナル・プラグイン開発)
- OriginalPluginFiles(ファイル一覧)
- Sample.php
- SamplePost.php
- plugin.ini
- SamplesPlugin.php
- create_samples_table.php
- create_sample_posts_table.php
- samples_frame_edit_tab.blade.php
- card/index.blade.php
- card/template.ini
- default/bucket.blade.php
- default/edit.blade.php
- default/index.blade.php
- default/list_buckets.blade.php
- default/show.blade.php
- default/template.ini
- WYSIWYG
- Session
- Programing tips
- Rule(ルール)
- Laravel method tips
- Laravel reference pages
- PHP
- phpcs
- Datetimepicker
- Hook(処理のフック)
- SQL
- Pull-Request(Web画面上)
- Post
- Optimize
- Composer
- npm
- コントローラー側の$this--can()-の調査
- API (外部サービスAPI)
- Test Case(テストケース)
- memo(永原のメモ)
- TCPDF(実装サンプル)
- Phpunit(ユニットテスト)
-
Dusk(ブラウザテスト)
- Github-Actions-Dusk(Github Actionsでブラウザテスト)
- Dusk-Manual(マニュアル自動生成)
- Develop-Windows(Windows開発環境)
- users_columns(ユーザ任意項目)
- container-page-beta(コンテナ方式(ページ)対応(ベータ版))
- Migration
- Other
- Link
- MultiLanguage(多言語化の際の注意点)