Answers.Body: <p>I missed this in the .env file, I'll leave this here in case anyone else is as bad a space case as myself. :)</p>
  
  <pre><code># The environment Craft is currently running in ('dev', 'staging', 'production', etc.)
  ENVIRONMENT="dev"
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-29T04:18:46.833Z
Answers.Text: Just as a sanity check -- .make sure that `.env` is not checked into git
Answers.UserDisplayName: andrew.welch
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-28T16:33:11.273Z
Answers.LastActivityDate: 2018-09-28T16:33:11.273Z
Answers.UserDisplayName: Darryl Hardin
Body: <p>I've been working on a site locally in <code>devMode</code>. I moved it from Craft 2 to Craft 3. I set <code>devMode</code> to <code>false</code> in <code>config/general.php</code> file and in admin it doesn't show the <code>devMode</code> bar at the top, but everything in the front of the site was pointing to my local environment.</p>
  
  <p>The only thing that has worked is setting my siteUrl in the 'dev' to the actual site</p>
  
  <pre><code>// Dev environment settings
  'dev' =&gt; [
      // Base site URL
      'siteUrl' =&gt; 'https://footwearoutfitters.net',
  
      // Dev Mode (see https://craftcms.com/support/dev-mode)
      'devMode' =&gt; false,
  ]
  </code></pre>
  
  <p>While this works, I'm concerned if it thinks it's running in <code>devMode</code> I'll have potential security threats.</p>
  
Tags: <craft3><devmode>
Title: Craft 3 devMode doesn't turn off
ThreadText: # Craft 3 devMode doesn't turn off
  
  (Asked by: username_0 on 2018-09-28)
  
  I've been working on a site locally in `devMode`. I moved it from Craft 2 to Craft 3. I set `devMode` to `false` in `config/general.php` file and in admin it doesn't show the `devMode` bar at the top, but everything in the front of the site was pointing to my local environment.
  
  The only thing that has worked is setting my siteUrl in the 'dev' to the actual site
  
  ```
  // Dev environment settings
  'dev' => [
      // Base site URL
      'siteUrl' => 'https://footwearoutfitters.net',
  
      // Dev Mode (see https://craftcms.com/support/dev-mode)
      'devMode' => false,
  ]
  
  ```
  
  While this works, I'm concerned if it thinks it's running in `devMode` I'll have potential security threats.
  
  **Tags:** craft3, devmode
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-09-28. Score: 1 | Accepted answer
  
  I missed this in the .env file, I'll leave this here in case anyone else is as bad a space case as myself. :)
  
  ```
  # The environment Craft is currently running in ('dev', 'staging', 'production', etc.)
  ENVIRONMENT="dev"
  
  ```
  
  > **Comments:**
  > **username_1**: Just as a sanity check -- .make sure that `.env` is not checked into git  
  
  ---
  
  