<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>

CC BY-SA 4.0
2018-10-29T04:18:46.833Z
Just as a sanity check -- .make sure that `.env` is not checked into git
andrew.welch
CC BY-SA 4.0
2018-09-28T16:33:11.273Z
2018-09-28T16:33:11.273Z
Darryl Hardin
<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>

<craft3><devmode>
Craft 3 devMode doesn't turn off
# 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  

---

