Installation en local - Asterodeia/utopya GitHub Wiki
-
Disposer d'une ligne de commande. Si vous êtes sous Windows, avoir git bash d'installé.
-
Installer homestead comme indiqué ici
-
Cloner le repository dans la machine virtuelle ainsi créée
-
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 :
-
En ssh dans la VM, exécutez à la racine :
cat .env.example > .env -
Lancer les commandes suivantes dans la VM :
composer installphp artisan key:generatephp artisan config:clearphp 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