Giter VIP home page Giter VIP logo

keskonfait's Introduction

Projet keskonfait

Build Status

Setup local de Laravel

Dépendances: docker, docker-compose, Git, Vagrant, Homestead, Virtualbox, vim

Bon, vim n'est pas tant nécessaire, surtout sur Windows. En fait, utilisez l'éditeur de texte que vous voulez. Mais, je le met là parce que je suis un fan!

Methode Docker

  1. Installer docker et docker-compose pour votre système d'exploitation
  2. Cloner le projet keskonfait
  3. Aller dans le dossier du projet
  4. Ensuite aller à l'intérieur du dossier laradock
  5. lancer la commande:
$ docker-compose up -d nginx mysql
  1. Done. Dans un browser entrer http://127.0.0.1

Methode Vagrant

  1. Installer VirtualBox

  2. Installer Vagrant pour votre système d'exploitation. Une fois installé, lancer la commande suivante:

$ vagrant box add laravel/homestead --box-version 1.1.0
  1. Par la suite, il faut installer et configurer Homestead. Pour Windows, je ne peux pas tester alors je vous laisse ce lien là Install Homestead on Windows, mais ça devrait être assez straight forward.
$ cd </folder/where/you/put/all/your/repos>
$ git clone https://github.com/laravel/homestead.git Homestead
$ cd Homestead
$ bash init.sh
$ cd ~/.homestead
$ vim Homestead.yaml

Voici le fichier Homestead.yaml de base.

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Code                       # À modifier pour votre path local sur votre ordi vers le projet Keskonfait
      to: /home/vagrant/Code

sites:
    - map: homestead.app
      to: /home/vagrant/Code/public   # ***** à modifier !!! Il faut le mettre comme ça, il n'est pas comme ça par defaut

databases:
    - homestead

# blackfire:
#     - id: foo
#       token: bar
#       client-id: foo
#       client-token: bar

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

En gros, ce que ça fait c'est mapper notre code (~/Code dans le fichier ci-dessus) dans la machine virtuelle Vagrant dans le path /home/vagrant. Alors, faite juste changer ~/Code pour le path où vous avez cloner le projet keskonfait de Github dans votre ordi.

Finalement, retournez dans </folder/where/you/put/all/your/repos>/Homestead/, puis tapez:

$ vagrant up

That's it, le code va rouler dans la machine Vagrant et vous avez juste à ouvrir un browser et entrer http://192.168.10.10

keskonfait's People

Contributors

plwagner avatar

Watchers

James Cloos avatar  avatar Agustin Suarez avatar  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.