Skip to content

Commit

Permalink
Attempt to fix ROOTPATH in CLI. Fixes #460
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Apr 7, 2017
1 parent 46ce975 commit 992e607
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@

// Location to the Paths config file.
$pathsPath = 'application/Config/Paths.php';
$public = trim($paths->publicDirectory, '/');

// Path to the front controller
define('FCPATH', './public/'.DIRECTORY_SEPARATOR);
define('FCPATH', realpath($public).DIRECTORY_SEPARATOR);

/*
*---------------------------------------------------------------
Expand Down

0 comments on commit 992e607

Please sign in to comment.