Answers.Body: <p>The solution was ENVIRONMENT="local" in .env
  via andrew.welch</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-06T22:31:59.950Z
Answers.LastActivityDate: 2018-08-06T22:31:59.950Z
Answers.UserDisplayName: joomkit
Body: <p>I am using .env to set environment to local:</p>
  
  <pre><code># .ENV The environment Craft is currently running in ('dev', 'staging', 
  'production', etc.)
   CRAFTENV_CRAFT_ENVIRONMENT="local"
  </code></pre>
  
  <p>My general config looks like:</p>
  
  <pre><code> // Dev environment settings
  'local' =&gt; [
      'devMode' =&gt; true,
  
      // Base site URL
      'siteUrl' =&gt; getenv('CRAFTENV_BASE_URL')
  
  ],
  </code></pre>
  
  <p>My staging site is :</p>
  
  <pre><code> // Staging environment settings
  'staging' =&gt; [
      // Base site URL
      'siteUrl' =&gt; getenv('CRAFTENV_BASE_URL'),
  
      // Dev Mode (see https://craftcms.com/support/dev-mode)
      'devMode' =&gt; true,
  
      'baseUrl'  =&gt; getenv('CRAFTENV_BASE_URL'),
      'basePath' =&gt; getenv('CRAFTENV_BASE_PATH'),
      'aliases' =&gt; [
          '@assetBaseUrl' =&gt; getenv('ASSET_BASE_URL'),
          '@assetBasePath' =&gt; getenv('ASSET_BASE_PATH'),
          '@baseUrl' =&gt; getenv('CRAFTENV_BASE_URL'),
          '@basePath' =&gt; getenv('CRAFTENV_BASE_PATH')
      ],
      // Custom site-specific config settings
      'custom' =&gt; [
          'craftEnv' =&gt; getenv('CRAFTENV_CRAFT_ENVIRONMENT'),
          'staticAssetsVersion' =&gt; 1,
      ]
  ],
  </code></pre>
  
  <p>Why wont my local site show the dev mode settings in CP ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-06T17:50:37.040Z
Comments.Text: Are you using .env or are you using .env.php? If the former, you want the constant to be: `ENVIRONMENT="local"`
Comments.UserDisplayName: andrew.welch
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-06T17:54:11.947Z
Comments.Text: .env for sure (was using env.php but had some issues). Have disabled SEOmatic and other plugins but it looks like it never reads .env. I just had it working if devMode is tru in global so its missing my 'local' config section..
Comments.UserDisplayName: joomkit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-06T18:00:20.203Z
Comments.Text: ENVIRONMENT="local" solved it - ThankYou!
Comments.UserDisplayName: joomkit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-06T18:54:27.243Z
Comments.Text: @joomkit Can you add your solution as an official answer in case it ends up helping someone in the future?
Comments.UserDisplayName: Brad Bell
Tags: <config><multi-environment>
Title: Config for devMode not showing when true
ThreadText: # Config for devMode not showing when true
  
  (Asked by: username_0 on 2018-08-06)
  
  I am using .env to set environment to local:
  
  ```
  # .ENV The environment Craft is currently running in ('dev', 'staging', 
  'production', etc.)
   CRAFTENV_CRAFT_ENVIRONMENT="local"
  
  ```
  
  My general config looks like:
  
  ```
   // Dev environment settings
  'local' => [
      'devMode' => true,
  
      // Base site URL
      'siteUrl' => getenv('CRAFTENV_BASE_URL')
  
  ],
  
  ```
  
  My staging site is :
  
  ```
   // Staging environment settings
  'staging' => [
      // Base site URL
      'siteUrl' => getenv('CRAFTENV_BASE_URL'),
  
      // Dev Mode (see https://craftcms.com/support/dev-mode)
      'devMode' => true,
  
      'baseUrl'  => getenv('CRAFTENV_BASE_URL'),
      'basePath' => getenv('CRAFTENV_BASE_PATH'),
      'aliases' => [
          '@assetBaseUrl' => getenv('ASSET_BASE_URL'),
          '@assetBasePath' => getenv('ASSET_BASE_PATH'),
          '@baseUrl' => getenv('CRAFTENV_BASE_URL'),
          '@basePath' => getenv('CRAFTENV_BASE_PATH')
      ],
      // Custom site-specific config settings
      'custom' => [
          'craftEnv' => getenv('CRAFTENV_CRAFT_ENVIRONMENT'),
          'staticAssetsVersion' => 1,
      ]
  ],
  
  ```
  
  Why wont my local site show the dev mode settings in CP ?
  
  **Tags:** config, multi-environment
  
  > **Comments:**
  > **username_1**: Are you using .env or are you using .env.php? If the former, you want the constant to be: `ENVIRONMENT="local"`  
  > **username_0**: .env for sure (was using env.php but had some issues). Have disabled SEOmatic and other plugins but it looks like it never reads .env. I just had it working if devMode is tru in global so its missing my 'local' config section..  
  > **username_0**: ENVIRONMENT="local" solved it - ThankYou!  
  > **username_2**: @username_0 Can you add your solution as an official answer in case it ends up helping someone in the future?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-08-06. Score: 2
  
  The solution was ENVIRONMENT="local" in .env
  via username_1
  
  
  ---
  
  