LoginSignup
2
1

More than 5 years have passed since last update.

初心者がする「初めてのlaravel」*homesteadで環境構築するの巻(その一)

Last updated at Posted at 2018-10-07

最近何かと話題の「入江開発室」で立ち上がった「初心者向けプログラミング学習支援」に参加してLalavelの環境構築が整ったのでその手順をメモ。

参加した全員がwindowsでしかもhome editionなのでdockerは建てられず、homesteadを選択。

【手順1】下記をインストール

  1. git, https://git-scm.com/downloads
  2. virtualbox, https://www.virtualbox.org/
  3. vargrant, https://www.vagrantup.com/downloads.html

サイトの「download」にある「windows」の32bit、64bitを自分のPCの型を調べて選択してください。
詳しい内容はそれぞれ検索してください(何度調べてもよくわからない・・・)

【手順2】コマンドプロンプト

  • Cドライブまで移動: \cもしくはC:\と打つと移動できます(移動するのはインストールした「vagrant」のあるフォルダ名(HashiCorp)がCドライブ直下にあるためです)。

  • vagrant box add laravel/homestead
    と入力して、virtual boxを選択します(選択肢が出ます)。

  • cd %USERPROFILE%
    でホームディレクリに移動して(%USERPROFILE%で「C:\Users[useraccount]\」に戻れます、もしくは自力で戻ってください)下記を打ち込んでください。
    git clone https://github.com/laravel/homestead.git Homestead

  • 完了したら「エクスプローラー」から「ローカルディスク」→「ユーザー」→「アカウント名」→「homestead」があるか確認。

  • コマンドプロンプトからhomesteadに移動して「init.bat」と打ち込んで、「Homestead initialized!」と表示されたら完了です。

(追記)
同じメンティさんにcloneに7時間もかかると表示されることもありました。気長に待ちましょう。
image2.png

hiroroさん、ありがとう。

2
1
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
2
1