static public function initialize()
    {
        self::$cli = PHP_SAPI === 'cli';

        # Set Rails path
        self::$path = str_replace(DIRECTORY_SEPARATOR, '/', __DIR__);
        // self::$path = str_replace(DIRECTORY_SEPARATOR, '/', RAILS_PATH);

        # Set root path
        self::$root = str_replace(DIRECTORY_SEPARATOR, '/', RAILS_ROOT);

        # Set public path
        self::$publicPath = defined('RAILS_PUBLIC_PATH') ? RAILS_PUBLIC_PATH : self::$root . '/public';
        self::$publicPath = str_replace(DIRECTORY_SEPARATOR, '/', self::$publicPath);

        /**
         * Set environment.
         */
        self::$env = RAILS_ENV;

        self::$config = self::defaultConfig();

        # Debugging functions...
        include self::$path . '/Toolbox/functions.php';

        self::setRailsConfig();
    }