Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **Setting project**
- 1. Install PHP, Composer, VirtualBox & Vagrant.
- 2. Clone or download repository.
- 3. Go to project root directory.
- 4. Run `composer install`.
- 5. Run `php vendor/bin/homestead make` in Mac/Linux or `vendor\\bin\\homestead make` in Windows.
- 6. Duplicate `.env.example` file, rename it to `.env` and run `php artisan key:generate`.
- 7. Add `192.168.10.10 homestead.app` to the `hosts` file on your machine.
- 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).
- 9. Access the site via your web browser: `homestead.app`.
- **Managing database**
- 1. Open your favorite MySQL manager software.
- 2. Connect to the database with these credentials:<br>
-  `Host: 127.0.0.1`<br>
-  `User: homestead`<br>
-  `Password: secret`<br>
-  `Port: 33060`
- **Stopping Homestead**
- 1. Run `vagrant halt` from project root directory. Or `vagrant destroy` to delete the virtual machine.
- 2. To run Homestead again just run `vagrant up` from project root directory.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement