CI envrionment handling
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# Disable directory browsing
|
||||
Options -Indexes
|
||||
|
||||
PassEnv CI_ENVIRONMENT
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Rewrite engine
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
* CHECK PHP VERSION
|
||||
*---------------------------------------------------------------
|
||||
*/
|
||||
var_dump(getenv('CI_ENVIRONMENT'));
|
||||
|
||||
$minPhpVersion = '8.1'; // If you update this, don't forget to update `spark`.
|
||||
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) {
|
||||
|
||||
Reference in New Issue
Block a user