Giter Club home page Giter Club logo

vagrant's Introduction

Description

This configuration includes following software:

  • Debian 8.1
  • PHP 7.1
  • MySQL 5.6 Percona Server
  • Apache 2.2.22
  • Composer
  • Curl
  • Vim
  • Git

Usage

First you need to download this repository

$ git clone [email protected]:Sylius/Vagrant.git vagrant

And build Vagrant:

$ cd vagrant
$ vagrant up

While waiting for Vagrant to start up, you should add an entry into /etc/hosts file on the host machine.

10.0.0.200      sylius.dev

From now you should be able to access your Sylius project at http://sylius.dev/app_dev.php.

Your newly created project is available under sylius folder.

Installing your assets manually

$ vagrant ssh -c 'cd /var/www/sylius && ./node_modules/.bin/gulp'

Troubleshooting

Beware

Using Symfony2 inside Vagrant can be slow due to synchronisation delay incurred by NFS. To avoid this, both locations have been moved to a shared memory segment under /dev/shm/sylius.

To view the application logs, run the following commands (inside Vagrant):

$ tail -f /dev/shm/sylius/app/logs/prod.log
$ tail -f /dev/shm/sylius/app/logs/dev.log

To view the apache logs, run the following commands (inside Vagrant):

$ tail -f /var/log/apache2/sylius_error.log
$ tail -f /var/log/apache2/sylius_access.log

Configure vagrant to contribute on Sylius Core

Use sylius for contribution

Edit "Vagrantfile" and replace this following line:

sylius_config.vm.provision :shell, privileged: false, path: "shell_provisioner/sylius/create.sh" 

By this one:

sylius_config.vm.provision :shell, privileged: false, path: "shell_provisioner/sylius/create_for_contribution.sh"

Clone your own sylius repository

git clone https://github.com/{user}/Sylius sites/sylius

replace {user} with your github account user name

Build Vagrant:

$ vagrant up

vagrant's People

Contributors

lchrusciel avatar loicmobizel avatar pjedrzejewski avatar pix-art avatar stefandoorn avatar adamelso avatar

Watchers

James Cloos avatar Markus Günther avatar

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.