From d214755e6af7264334774f78d79c3d7f5b341f09 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 24 Nov 2014 17:45:46 +0000 Subject: [PATCH] Added env detection to README and INSTALL. Closes #19. --- INSTALL.md | 5 +++++ README.md | 2 ++ 2 files changed, 7 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index e83ad664..8ac4cf24 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -9,6 +9,7 @@ You need at least PHP, [Composer](https://getcomposer.org/) and the `php-mcrypt` 3. [Configuring a database!](#configuring-a-database) 1. [Running database migrations](#running-database-migrations) 4. [Apache setup](#apache) +5. [Environment detection](#environment-detection) ## Get a copy! @@ -158,3 +159,7 @@ Next we add a lookup on our `HOSTS` file (if we're not serving Cachet externally ``` Restart Apache and you're done! + +## Environment Detection + +If you're deploying into production you'll want to create an environmental variable as `ENV=production`. In the instance where the variable isn't defined, Cachet will think that it's `local`. diff --git a/README.md b/README.md index 5c81e65f..f4619d8a 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ See the [INSTALL.md](/INSTALL.md) document for more information. If you'd like t [Deploying to Heroku](/INSTALL.md#deploy-to-heroku) requires one-click to get started and no knowledge of PHP or Laravel afterwards. +If you're deploying into production you'll want to create an environmental variable as `ENV=production`. In the instance where the variable isn't defined, Cachet will think that it's `local`. + # Looking to contribute? Are you looking to help out and contribute towards Cachet, awesome! There is a lot to do before the [first milestone](https://github.com/jbrooksuk/Cachet/milestones/First%20Release) is reached, including: