基础篇8. 开启并创建settings.local.php文件

龷龴龲龮龪龦龢龡龟龛龴settings.php龃龂龀齿齽龃龂齼齸齴齲齰齭齬齫齨齤齢齡龟齠齝齙齖齼齒齏齌齬齫齢齝齋齈齅齃龀

齂龮龪齀鼾鼺鼶鼵鼳齙鼲龃龂齼鼺鼶鼰local.鼣齙齿鼠鼟鼛鼲龃龂齢龷鼙鼕鼔齢鼔鼒鼏鼎鼌鼈鼆鼃龀黿黽黺

/**
 * Load local development override configuration, if available.
 *
 * Use settings.local.php to override variables on secondary (staging,
 * development, etc) installations of this site. Typically used to disable
 * caching, JavaScript/CSS compression, re-routing of outgoing emails, and
 * other things that should not happen on development and testing sites.
 *
 * Keep this code block at the end of this file to take full effect.
 */
 if (file_exists(__DIR__ . '/settings.local.php')) {
   include __DIR__ . '/settings.local.php';
 }

齿齽鼆鼃齢麦麥麡麞麝麡麛麚鼲settings.local.php龃龂齙麗麔麚鼲齙麑麎麋settings.php麊麇麥settings.local.php齿齽龃龂龀

鼟齒麃鹿鼲龃鹻齼鹷鼎齿鼌鼈鹳鹱齙鼟鹮鹪龢鹨鹥鹣龪齙鹟鹪龢鹞齿鼌鼈鹳鹱齢鹜鹛鹘鹕鹒鹐齙齂鹌鹊麦麥龀

鹆齋鹂鹀鸾鸼齢鹮鸹齙鼟鼏鼎齢3鼈鹳鹱麃鼳鼛齸鸴鸱鸮齙鸫麡鹟龢鹳鹱齼齏鸧settings.local.php鸤麃鹿鸢龀

齿鼠鸠齢鸟鸛麡齙鸗齭齿齽龃龂齏鸧鸢鸖鸒齠齝齙麊鸐鸏鸎鸍齼鹮鸹鸉鸈齢鸅鸴鹪龢麥鼎齢齠齝鸄鸃鸃鹮龛鼠龀鸴鹿鸀鷿鷽鷼鸖鷸麇麥鷸鷶齢settings.local.php龃龂龀

鷵麗齙麦鷱鷯鷫鸐鸏鷨齙龮龪鹪龢齰鷧齬齫JS鷦CSS齢鷣鷠鼵鼳齙齿鼠鷞鼳鼲鸐鸏齢鼾鷜齼鹷鼎龮龪鹪龢齢龃龂龀鸛鷱齙麗麔JS鷚鷨CSS龃龂鷖鷣鷠鸢齙齨齤鸤鼛麥齲齽龃龂鷓鷏鷎龛齽鸀齢龃龂齙drupal麥齿鸒鸾鸼龲鷍鷌http齢鷈鷄齝鷂齙鶾鹿鶻龲鶸鶴齬齫齢鶲鸐鶰鶬龀鸫麡龮龪鼲鸐鸏鷯鷫齢鶩鶨齙鸤鹮鼳麇麥齿齽鼵鼳龀

鸴鹿龮龪鹪龢鶤鶡龛齽鹟鼲龮龪鷸鷶鶝鶜鹊麦麥齢settings.php龃龂龀齿齽龃龂鼲鶘鶖鷦鶔鶐鼆鼃齢鶩鶨齙麃鹿鷖麎麋龀齿鸤鶍鶋鸢龮龪鶇齿齽鶝鶜龃龂齢龡龟齙鹮鼛鶅鶃鼎齖鹌鸅龀

Drupal齢鸐鸏鷨鶀鵼鷱龮龪鵻鵺鼎鸢齿齽鹪鷄齙鸛鶻鹌龪鼲sites龃龂鵶齼鷱龮龪鵳鵲鸢龛齽example.settings.local.php龃龂齙龮龪鹪龢鸠齢麡齙拷鵮齿齽龃龂鶾鵬龟鼲sites/default鵫鵨龴齙鶾鹞龃龂鵤鹥鷎settings.local.php龀

本书共42小节:

评论 (写第一个评论)