コンテンツの作成 |
7.26 |
CKEditor Views |
Viewsでティザーを一覧するとページのレイアウトが崩れることがある |
排他 |
7.26 |
lock |
Viewsモジュールの設定ページのような排他機能 |
サイトの構築 |
7.27 |
Context block |
ページ別、カテゴリ別等でブロックの表示有無を簡単にするには |
ユーザの管理 |
7.27 |
PHP |
新規ユーザーの追加ができない |
言語 |
7.28 |
vim |
vimで全角が化けてしまう |
アップデート |
7.28 |
DisableMessages |
モジュールのアップデートガイダンスを非表示にしたい |
アップデート |
7.28 |
Views |
Pagerが表示されなくなった |
GoogleMaps |
7.28 |
Javascript |
IE9でGoogle Map APIを利用した住所情報所得がうまくゆかない |
サイトの構築 |
7.31 |
Views |
ブロックViewsの絞り込みが表示されない |
コンテンツの作成 |
7.31 |
CKEditor |
CKEditorの新規生成ダイアログ内の初期値の変更 |
Drupal Commerce |
7.34 |
Commerce profile |
Drupal Commerceの請求情報、配送情報の住所を日本的(郵便番号、都道府県、市区町村、住所、、、) |
フォーム |
7.34 |
Webform |
動的なフォーム(webform) |
Messages |
7.34 |
Disable messages |
標準(コア)が表示する特定のメッセージ非表示にしたい |
サイトの構築 |
7.34 |
ECK |
Entityの使い方について |
アップデート |
7.34 |
Core |
簡単にCoreのセキュリティアップデートがしたい |
パフォーマンス |
7.34 |
Server |
お金をかけないで冗長化するには |
ユーザ |
7.34 |
ip_ranges |
ログインアタック対策は? |
Drupal Commerce |
7.34 |
Commerce order |
Drupal Commerce:カート内や購入手続きページ内の「Order total」が翻訳できない |
コンテンツの作成 |
7.34 |
Entityreference prepopulate |
新規ノード作成時のリファレンス方法 |
Database |
7.34 |
PHP |
データベースクエリ(SELECT)時のSQL関数 |
コメント
■ 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
ページ