Skip to content

Instantly share code, notes, and snippets.

@lassaadbaati
Last active April 12, 2017 08:49
Show Gist options
  • Save lassaadbaati/08bdf94f56814b7c5e39df43e0921568 to your computer and use it in GitHub Desktop.
Save lassaadbaati/08bdf94f56814b7c5e39df43e0921568 to your computer and use it in GitHub Desktop.
Installation de homestead avec vagrant
  • Installer virtualbox
  • Installer vagrant
  • Ubuntu - Host install virtualbox
  • Activer la virtualisation dans le bios

Installer homestead

Install homestead

  • Ajouter la box laravel/homestead
  vagrant box add laravel/homestead
  • Télécharger les fichiers de homestead à partir du dépot git

     cd ~
     git clone https://github.com/laravel/homestead.git Homestead
    
     cd Homestead
  • aller dans la branche 4.0.5 du projet

    git checkout v4.0.5  
  • Générer le fichier de configuration Homestead.yaml

// Mac / Linux...
bash init.sh

// Windows...
init.bat
  • Installer git bash
  • générer les 2 clés SSH (public et privé)
ssh-keygen 
  • Ajouter le domaine homestead.app ou autre à l machine host éditer le fichier hosts et ajouter la ligne suivante
192.168.10.10  homestead.app
  • linux/unix -> /etc/hosts

  • windows -> C:\Windows\System32\drivers\etc\hosts

  • Démarrer la machine vagrant

vagrant up 
  • Pour recharger les paramètre de la vm vagrant aprés avoir modifié le fichier homestead.yaml
vagrant reload --provision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment