Created
June 3, 2014 09:00
-
-
Save syossan27/0dc2db2fbc101209f8f9 to your computer and use it in GitHub Desktop.
Laravel Homesteadを使ってみよう! ref: http://qiita.com/syo/items/0104615e5f9ae26f0720
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant box add laravel/homestead | |
git clone https://github.com/laravel/homestead.git Homestead |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd Homestead | |
vim Homestead.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
authorize: (公開鍵の場所) | |
keys: | |
- (秘密鍵の場所) | |
folders: | |
- map: (Laravelのプロジェクトの場所:例,/var/www/laravel) | |
to: /home/vagrant/Code | |
sites: | |
- map: homestead.app | |
to: /home/vagrant/Code/(publicディレクトリの場所:例,laravel/public) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1 homestead.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -u root -psecret | |
GRANT ALL ON *.* TO 追加したいユーザ名@localhost IDENTIFIED BY 'パスワード'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment