Skip to content

✨ ❄️ 🎀 Use Homestead per project install, updated readme, add example config #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
Homestead.json
Homestead.yaml
.env
/aliases
/after.sh
15 changes: 15 additions & 0 deletions Homestead.yaml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ip: 192.168.10.30
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- { map: ~/Sites/pastebin, to: /home/vagrant/Code/pastebin }
sites:
- { map: pastebin.app, to: /home/vagrant/Code/pastebin/public }
databases:
- homestead
name: pastebin
hostname: pastebin
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"require-dev": {
"codeclimate/php-test-reporter": "^0.4.4",
"fzaninotto/faker": "^1.6",
"laravel/homestead": "^5.0",
"laravel/homestead": "^5",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.7"
},
Expand All @@ -41,6 +41,7 @@
"php artisan key:generate"
],
"post-install-cmd": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 5 additions & 22 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,17 @@ Please make sure you install the following tools before starting with the instal

## Installation

> Note that you're free to adjust the `~/Sites/pastebin` location to any directory you want on your machine.
> Note that you're free to adjust the `~/Code/pastebin` location that will be in the `Homestead.yaml` to any directory you want on your machine.

1. Clone this repository: `git clone git@github.com:laravelio/pastebin.git pastebin`
2. Add the `Homestead.yaml` file from below to the root of your project
2. Run `./vendor/bin/homestead make --no-after`
3. Run `vagrant up`
4. SSH into your Vagrant box, go to `/home/vagrant/pastebin` and run the following commands:
4. SSH into your Vagrant box, go to `/home/vagrant/Code/pastebin` and run the following commands:
1. `composer install`
2. `php artisan migrate`
2. `php artisan key:generate`
3. `php artisan migrate`
5. Add `192.168.10.30 pastebin.app` to your computer's `/etc/hosts` file

```yaml
ip: 192.168.10.30
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- { map: ~/Sites/pastebin, to: /home/vagrant/pastebin }
sites:
- { map: pastebin.app, to: /home/vagrant/pastebin/public }
databases:
- homestead
name: pastebin
hostname: pastebin
```

You can now visit the app in your browser by visiting [http://pastebin.app/](http://pastebin.app).

## Maintainers
Expand Down