サイトの環境設定 |
7.38 |
Views Bulk Operation |
VBO(Views Bulk Operation)で指定したアクションが表示されない |
サイトの構築 |
7.19 |
Plesk |
Pleskでdrupal7(プライベートファイルシステム)を使う場合の注意点 |
サイトの構築 |
7.41 |
Rules |
Paygent モジュールについて |
サイトの構築 |
7.34 |
ECK |
Entityの使い方について |
サイトの構築 |
7.23 |
Conditional fields |
ノード編集フォームを動的にしたい |
サイトの構築 |
8.9.x |
Webform |
drupalを使用した登録、一覧表示の方法について |
サイトの構築 |
7.22 |
Views Devel |
Viewsの設定ページが変に? |
サイトの構築 |
7.31 |
Views |
ブロックViewsの絞り込みが表示されない |
サイトの構築 |
7.27 |
Context block |
ページ別、カテゴリ別等でブロックの表示有無を簡単にするには |
サイトの構築 |
7.38 |
deployment |
冗長構成におけるアップロードおよび時間指定公開について |
サイトの構築 |
7.50 |
Module Missing Message Fixer |
モジュールをアンインストールしたらエラーがでるようになった |
サイトの構築 |
8.3x |
Webform |
Webformモジュール メールアドレスの入力ミス確認 |
サイトの構築 |
7.22 |
Views |
フィールドセットの伸縮をノンプログラミングでやりたい |
サイトの構築 |
7.59 |
Drupal.ajax |
drupal 7 で Uncaught TypeError: Drupal.ajax is undefined となったときの対応方法 |
サイトの構築 |
7.26 |
Field Views |
フォーム選択肢(プルダウンやチェックボックス、ラジオボタン)のカスタマイズ方法 |
サイトの構築 |
7.38 |
Content Template |
ページテンプレートが反映されません。 |
コンテンツの管理 |
7.15 |
Views Bulk Operation |
標準のコンテンツ編集/ユーザ一覧ページが物足りません |
コンテンツの管理 |
7.15 |
Pagenation |
一つの長いページをBookなどのように連続して読ませることはできますか? |
コンテンツの管理 |
7.50 |
Administration menu |
標準のユーザー管理ページ |
コンテンツの管理 |
6.x |
Views Flag Calendar |
空き室予約のような仕組みは実現できますか? |
コメント
■ settings.local.phpを作成する
パーマリンク Submitted by actbrain on 2017/10/20 01:52.
■ settings.local.phpを作成する
$ cd /path/to/document-root/sites/default
$ cp ../example.settings.local.php settings.local.php
■ settings.local.php から development.service.yml を読み込むようにする
$ cd /path/to/document-root/sites/default
$ vim settings.local.php
$ diff -upN ../example.settings.local.php settings.local.php
〜
-# $settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
+$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
〜
-# $settings['cache']['bins']['render'] = 'cache.backend.null';
+$settings['cache']['bins']['render'] = 'cache.backend.null';
〜
-# $settings['cache']['bins']['discovery_migration'] = 'cache.backend.memory';
+$settings['cache']['bins']['discovery_migration'] = 'cache.backend.memory';
〜
+$settings['file_private_path'] = '/path/to/private'; // ついでにプライベートディレクトリを定義する
■ development.service.yml にデバッグ用設定を追加する
$ cd /path/to/document-root/sites/default
$ vim ../development.services.yml
〜以下の行を追加する
parameters:
http.response.debug_cacheability_headers: true
twig.config:
debug: true
auto_reload: true
cache: false
〜
■ settings.php から settings.local.php を読み込むようにする
$ cd /path/to/document-root/sites/default
$ vim setting.php
$ diff -upN default.settings.php settings.php
〜
-# if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
-# include $app_root . '/' . $site_path . '/settings.local.php';
-# }
+if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
+ include $app_root . '/' . $site_path . '/settings.local.php';
+}
〜
■ Cacheをクリアする
$ drush cr
ページ