mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04: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
|
// 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());
|
return Redirect::secure(Request::getRequestUri());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,7 +247,6 @@ if (!defined('CONTACT_EMAIL')) {
|
|||||||
|
|
||||||
define('ENV_DEVELOPMENT', 'local');
|
define('ENV_DEVELOPMENT', 'local');
|
||||||
define('ENV_STAGING', 'staging');
|
define('ENV_STAGING', 'staging');
|
||||||
define('ENV_PRODUCTION', 'fortrabbit');
|
|
||||||
|
|
||||||
define('RECENTLY_VIEWED', 'RECENTLY_VIEWED');
|
define('RECENTLY_VIEWED', 'RECENTLY_VIEWED');
|
||||||
define('ENTITY_CLIENT', 'client');
|
define('ENTITY_CLIENT', 'client');
|
||||||
|
@ -45,11 +45,6 @@ class Utils
|
|||||||
return file_exists(storage_path() . '/framework/down');
|
return file_exists(storage_path() . '/framework/down');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function isProd()
|
|
||||||
{
|
|
||||||
return App::environment() == ENV_PRODUCTION;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function isNinja()
|
public static function isNinja()
|
||||||
{
|
{
|
||||||
return self::isNinjaProd() || self::isNinjaDev();
|
return self::isNinjaProd() || self::isNinjaDev();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user