LoginSignup
0
0

More than 3 years have passed since last update.

Homestead - Laravel を使っててなんか RuntimeException とかで壊れた時にとりあえず試すこと

Posted at

Key作り直し

vagrant ssh
cd <code directory>
php artisan key generate

migrate

vagrant ssh
cd <code diresctory>
php artisan migrate

composer install

vagrant ssh
cd <code directory>
composer install

キャッシュ削除

vagrant ssh
cd <code directory>
php artisan cache:clear 
php artisan config:clear 
php artisan route:clear 
php artisan view:clear 

storage 以下とかのいらなさそうなファイル消す

rm -rf storage
git checkout HEAD storage

git で出てる変な差分消す

※差分消えるので注意

git stash
git clean -fd

.envの設定ちゃんとできているか確認

確認する

edit .env

環境作り直し

vagrant destroy
vagrant up

ボックスダウンロードし直し

vagrant box list
vagrant box remove <box>

.vagrant を消す

rm -rf .vagrant

これ消すとVirtualBoxにゴミができる可能性があるので、VirtualBoxのアプリケーション(GUI)を開いてBoxを削除した後 vagrant up するといい。

Virtualboxのバージョンアップ

Vagrantバージョンアップ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0