mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Removed ENV_PRODUCTION
This commit is contained in:
parent
9b0426f4ab
commit
5d26eadb9c
@ -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…
Reference in New Issue
Block a user