Installation en local - Asterodeia/utopya GitHub Wiki

  1. Disposer d'une ligne de commande. Si vous êtes sous Windows, avoir git bash d'installé.

  2. Installer homestead comme indiqué ici

  3. Cloner le repository dans la machine virtuelle ainsi créée

  4. En ssh dans la vm, exécuter : sh install.sh

Procédure d'update

Après avoir récupérer les modifications distantes (sync sur le client github, ou git pull --rebase), lancer le script : sh update.sh

Explications des scripts :

  1. En ssh dans la VM, exécutez à la racine : cat .env.example > .env

  2. Lancer les commandes suivantes dans la VM :

  • composer install
  • php artisan key:generate
  • php artisan config:clear
  • php artisan migrate:refresh --seed

Warning: require(/home/vagrant/Dev/utopya/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/Dev/utopya/bootstrap/autoload.php on line 17 -> composer install

[PDOException] SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) -> créer le fichier .env

RuntimeException in Encrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. -> php artisan key:generate et php artisan config:clear