Php:laravel:homestead:vagrant:commands

De Les Tutoriaux du WebMestre
Aller à : navigation, rechercher

L'aide

Le provisioning

  • C'est un peut le Chef ou Puppet de notre machine virtuelle vagrant cf: [1]
  • c'est la commande passée implicitement à la fin du démarrage de la machine virtuelle par Vagrant (vagrant up)
#les commandes vagrant doivent avoir lieu dans le répertoire de confiuration de Homestaed
jpmena@jpmena-HP-ProDesk-600-G2-MT ~/.homestead $ cd ~/Homestead/
#L'aide:
jpmena@jpmena-HP-ProDesk-600-G2-MT ~/Homestead (master=) $ vagrant help provision
Usage: vagrant provision [vm-name] [--provision-with x,y,z]
        --provision-with x,y,z       Enable only certain provisioners, by type or by name.
    -h, --help                       Print this help
#on passe la commande elle même !
jpmena@jpmena-HP-ProDesk-600-G2-MT ~/Homestead (master=) $ vagrant provision
==> homestead-7: Running provisioner: file...
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: inline script
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: inline script
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: /tmp/vagrant-shell20161010-14434-7c0y1a.sh
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Creating Site: homestead.app
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Restarting Nginx
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Creating MySQL Database
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Creating Postgres Database
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Clear Variables
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: inline script
==> homestead-7:                                                                                                                                                 
==> homestead-7:   [Composer\Downloader\TransportException]                                                                                                      
==> homestead-7:   The "https://getcomposer.org/versions" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Name or service not known  
==> homestead-7:   failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known                                                
==> homestead-7:                                                                                                                                                 
==> homestead-7: self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--] [<version>]
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
  • On voit que l'on doit définir le proxy de notre entreprise pour notre machine virtuelle Homestead
    • nous avions la même trace console à la fin de notre démarrage de machine virtuelle ...
    • homestead-7 est le nom de la machine virtuelle créée par Vagrant dans le cadre de la configuration Hoestead
      • Sour VirtualBox cette machine est dite fonctionner en arrière plan (en Fonction nous répond l'affichage VirtualBox)