Permalink
Browse files

[STARTUP] Vagrant

Conflicts:
	web/app_dev.php
  • Loading branch information...
gajdaw committed Sep 26, 2014
1 parent 1d82fd5 commit 7336285a310d5195e62934223589b3b5ff84c2d4
Showing with 21 additions and 12 deletions.
  1. +14 −0 Vagrantfile
  2. +7 −2 app/config/config.yml
  3. +0 −10 web/app_dev.php
View
@@ -0,0 +1,14 @@
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "symfony-v0.4.4"
config.vm.hostname = "abc.example.net"
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", 1024]
end
config.vm.network :forwarded_port, guest: 80, host: 8880, host_ip: "127.0.0.1"
end
View
@@ -19,9 +19,14 @@ framework:
default_locale: "%locale%"
trusted_hosts: ~
trusted_proxies: ~
# Problem with session when using Vagrant
# http://symfony.com/doc/current/cookbook/session/sessions_directory.html
# https://github.com/symfony/symfony/issues/7885
session:
# handler_id set to null will use default session handler from php.ini
handler_id: ~
handler_id: session.handler.native_file
save_path: "/tmp/symfony2app/app/cache/sessions"
fragments: ~
http_method_override: true
View
@@ -7,16 +7,6 @@
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
//umask(0000);
// This check prevents access to debug front controllers that are deployed by accident to production servers.
// Feel free to remove this, extend it, or make something more sophisticated.
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1')) || php_sapi_name() === 'cli-server')
) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
Debug::enable();

0 comments on commit 7336285

Please sign in to comment.