Removed ENV_PRODUCTION
This commit is contained in:
parent
9b0426f4ab
commit
5d26eadb9c
3 changed files with 1 additions and 7 deletions
|
|
@ -33,7 +33,7 @@ class StartupCheck
|
|||
}
|
||||
|
||||
// Ensure all request are over HTTPS in production
|
||||
if (App::environment() == ENV_PRODUCTION && !Request::secure()) {
|
||||
if (Utils::isNinjaProd() && !Request::secure()) {
|
||||
return Redirect::secure(Request::getRequestUri());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -247,7 +247,6 @@ if (!defined('CONTACT_EMAIL')) {
|
|||
|
||||
define('ENV_DEVELOPMENT', 'local');
|
||||
define('ENV_STAGING', 'staging');
|
||||
define('ENV_PRODUCTION', 'fortrabbit');
|
||||
|
||||
define('RECENTLY_VIEWED', 'RECENTLY_VIEWED');
|
||||
define('ENTITY_CLIENT', 'client');
|
||||
|
|
|
|||
|
|
@ -45,11 +45,6 @@ class Utils
|
|||
return file_exists(storage_path() . '/framework/down');
|
||||
}
|
||||
|
||||
public static function isProd()
|
||||
{
|
||||
return App::environment() == ENV_PRODUCTION;
|
||||
}
|
||||
|
||||
public static function isNinja()
|
||||
{
|
||||
return self::isNinjaProd() || self::isNinjaDev();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue