Coder Social home page Coder Social logo

sandbox-symfony's Introduction

sandbox-symfony

A Symfony-optimized Sandbox on Vagrant

##Usage You can have several Symfony applications using the same sandbox, but only one can be active each time. For switching between the applications, for now, you have to edit a file. Usage Instructions below:

  1. Clone this repository in your local environment. CD to the folder and Initialize the puppet modules:

git submodule init

git submodule update

  1. Go to the application directory and clone your Symfony application. You can have as many applications as you want here. The Vagrantfile will define which one will run when vagrant goes up.

cd application/

git clone https://github.com/myVendor/myApplication.git

  1. Edit the Vagrantfile and point the synced folder to your application folder. The config.vm.synced_folder shall look like this:

config.vm.synced_folder "./application/myApplication/", "/vagrant", id: "vagrant-root", :nfs => true

  1. Run vagrant up

  2. After provisioning, your app shall be running at http://192.168.33.101

##Performance This sandbox by default runs a patch to the AppKernel class, adding 2 methods that will change the CACHE and LOG folders only for dev and test environments. This makes an impressive difference on the application performance as described on this excelent post from @beberlei: http://www.whitewashing.de/2013/08/19/speedup_symfony2_on_vagrant_boxes.html

##Customizing Puppet To customize your sandbox, you can edit the custom module or modify the default manifest.

###Custom Module Head to vagrantee/puppet/modules/custom/manifests/init.pp and edit it to add new commands (running migrations, fixtures, etc for instance). These instructions run after the server is provisioned.

###Modifying defaults To modify the server provisioning, head to vagrantee/puppet/manifests/default.pp and change it to suit your needs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.