Troubleshooting: installer_dev.php

File installer_dev.php, 855 bytes (added by leo, 15 months ago)

Installer (Developer Mode)

Line 
1<?php 
2require_once('config.php');
3// this check prevents access to debug front controllers that are deployed by accident to production servers.
4// feel free to remove this, extend it or make something more sophisticated.
5// if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
6// {
7//  die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
8// }
9
10$included_in_installer = true;
11require_once('pre_installer_code.php');
12
13require_once($options['sf_root_dir'].DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'ProjectConfiguration.class.php');
14
15$configuration = ProjectConfiguration::getApplicationConfiguration('installer', 'dev', true,$full_root_dir);
16ProjectConfiguration::getActive()->setWebDir($options['sf_web_dir']);
17sfContext::createInstance($configuration)->dispatch();
18