Advertisement
Guest User

Untitled

a guest
May 2nd, 2017
871
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. **Setting project**
  2.  
  3. 1. Install PHP, Composer, VirtualBox & Vagrant.
  4.  
  5. 2. Clone or download repository.
  6.  
  7. 3. Go to project root directory.
  8.  
  9. 4. Run `composer install`.
  10.  
  11. 5. Run `php vendor/bin/homestead make` in Mac/Linux or `vendor\\bin\\homestead make` in Windows.
  12.  
  13. 6. Duplicate `.env.example` file, rename it to `.env` and run `php artisan key:generate`.
  14.  
  15. 7. Add `192.168.10.10 homestead.app` to the `hosts` file on your machine.
  16.  
  17. 8. Run `vagrant up` from project root directory (if you get a SSH error try running `ssh-keygen -t rsa -C "your@email.com"` in your home directory in order to generate a public/private RSA key pair. Then try running `vagrant up` again).
  18.  
  19. 9. Access the site via your web browser: `homestead.app`.
  20.  
  21. **Managing database**
  22.  
  23. 1. Open your favorite MySQL manager software.
  24.  
  25. 2. Connect to the database with these credentials:<br>
  26. &emsp;`Host: 127.0.0.1`<br>
  27. &emsp;`User: homestead`<br>
  28. &emsp;`Password: secret`<br>
  29. &emsp;`Port: 33060`
  30.  
  31. **Stopping Homestead**
  32.  
  33. 1. Run `vagrant halt` from project root directory. Or `vagrant destroy` to delete the virtual machine.
  34.  
  35. 2. To run Homestead again just run `vagrant up` from project root directory.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement