Skip to content

Instantly share code, notes, and snippets.

@rossriley
Created March 20, 2015 12:07
Show Gist options
  • Save rossriley/e78d27d28676353a55ed to your computer and use it in GitHub Desktop.
Save rossriley/e78d27d28676353a55ed to your computer and use it in GitHub Desktop.
<?php
//
// this file sits in public/index.php
require_once "../vendor/autoload.php";
$configuration = new Bolt\Configuration\Standard(dirname(__DIR__));
$configuration->setPath("web","public");
$configuration->setPath("files","public/files");
$configuration->setPath("themebase","public/theme");
$configuration->getVerifier()->removeCheck('apache');
$configuration->verify();
$app = new Bolt\Application(array('resources'=>$configuration));
$app->initialize();
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment