Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f92951e

Browse files
svpernova09driesvints
authored andcommitted
✨ ❄️ 🎀 Use Homestead per project install, updated readme, add example config
1 parent 2372c06 commit f92951e

File tree

5 files changed

+30
-29
lines changed

5 files changed

+30
-29
lines changed

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
Homestead.json
99
Homestead.yaml
1010
.env
11+
/aliases
12+
/after.sh

‎Homestead.yaml.example‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ip: 192.168.10.30
2+
memory: 2048
3+
cpus: 1
4+
provider: virtualbox
5+
authorize: ~/.ssh/id_rsa.pub
6+
keys:
7+
- ~/.ssh/id_rsa
8+
folders:
9+
- { map: ~/Sites/pastebin, to: /home/vagrant/Code/pastebin }
10+
sites:
11+
- { map: pastebin.app, to: /home/vagrant/Code/pastebin/public }
12+
databases:
13+
- homestead
14+
name: pastebin
15+
hostname: pastebin

‎composer.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"require-dev": {
1717
"codeclimate/php-test-reporter": "^0.4.4",
1818
"fzaninotto/faker": "^1.6",
19-
"laravel/homestead": "^5.0",
19+
"laravel/homestead": "^5",
2020
"mockery/mockery": "0.9.*",
2121
"phpunit/phpunit": "~5.7"
2222
},
@@ -41,6 +41,7 @@
4141
"php artisan key:generate"
4242
],
4343
"post-install-cmd": [
44+
"php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
4445
"Illuminate\\Foundation\\ComposerScripts::postInstall",
4546
"php artisan optimize"
4647
],

‎composer.lock‎

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎readme.md‎

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,17 @@ Please make sure you install the following tools before starting with the instal
2828

2929
## Installation
3030

31-
> Note that you're free to adjust the `~/Sites/pastebin` location to any directory you want on your machine.
31+
> 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.
3232
3333
1. Clone this repository: `git clone git@github.com:laravelio/pastebin.git pastebin`
34-
2. Add the `Homestead.yaml` file from below to the root of your project
34+
2. Run `./vendor/bin/homestead make --no-after`
3535
3. Run `vagrant up`
36-
4. SSH into your Vagrant box, go to `/home/vagrant/pastebin` and run the following commands:
36+
4. SSH into your Vagrant box, go to `/home/vagrant/Code/pastebin` and run the following commands:
3737
1. `composer install`
38-
2. `php artisan migrate`
38+
2. `php artisan key:generate`
39+
3. `php artisan migrate`
3940
5. Add `192.168.10.30 pastebin.app` to your computer's `/etc/hosts` file
4041

41-
```yaml
42-
ip: 192.168.10.30
43-
memory: 2048
44-
cpus: 1
45-
provider: virtualbox
46-
authorize: ~/.ssh/id_rsa.pub
47-
keys:
48-
- ~/.ssh/id_rsa
49-
folders:
50-
- { map: ~/Sites/pastebin, to: /home/vagrant/pastebin }
51-
sites:
52-
- { map: pastebin.app, to: /home/vagrant/pastebin/public }
53-
databases:
54-
- homestead
55-
name: pastebin
56-
hostname: pastebin
57-
```
58-
5942
You can now visit the app in your browser by visiting [http://pastebin.app/](http://pastebin.app).
6043

6144
## Maintainers

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /