File tree Expand file tree Collapse file tree 5 files changed +69
-1
lines changed
Expand file tree Collapse file tree 5 files changed +69
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ APP_DEBUG=true
33APP_KEY = SomeRandomString
44
55DB_HOST = localhost
6+ DB_PORT = 3306
67DB_DATABASE = homestead
78DB_USERNAME = homestead
89DB_PASSWORD = secret
Original file line number Diff line number Diff line change 11/vendor
22* .DS_Store *
33.env
4+ .vagrant /*
45
56composer.lock
Original file line number Diff line number Diff line change 1+ ---
2+ ip : " 192.168.10.10"
3+ memory : 512
4+ cpus : 1
5+ hostname : panel
6+ name : panel
7+ provider : virtualbox
8+
9+ authorize : ~/.ssh/id_rsa.pub
10+
11+ keys :
12+ - ~/.ssh/id_rsa
13+
14+ folders :
15+ - map : " /path/to/local/files"
16+ to : " /home/vagrant/panel"
17+ type : nfs
18+
19+ sites :
20+ - map : pterodactyl.app
21+ to : " /home/vagrant/panel/public"
22+
23+ databases :
24+ - homestead
25+
26+ # blackfire:
27+ # - id: foo
28+ # token: bar
29+ # client-id: foo
30+ # client-token: bar
31+
32+ # ports:
33+ # - send: 50000
34+ # to: 5000
35+ # - send: 7777
36+ # to: 777
37+ # protocol: udp
Original file line number Diff line number Diff line change 1+ require 'json'
2+ require 'yaml'
3+
4+ VAGRANTFILE_API_VERSION ||= "2"
5+ confDir = $confDir ||= File . expand_path ( "vendor/laravel/homestead" , File . dirname ( __FILE__ ) )
6+
7+ homesteadYamlPath = "Homestead.yaml"
8+ homesteadJsonPath = "Homestead.json"
9+ afterScriptPath = "after.sh"
10+ aliasesPath = "aliases"
11+
12+ require File . expand_path ( confDir + '/scripts/homestead.rb' )
13+
14+ Vagrant . configure ( VAGRANTFILE_API_VERSION ) do |config |
15+ if File . exists? aliasesPath then
16+ config . vm . provision "file" , source : aliasesPath , destination : "~/.bash_aliases"
17+ end
18+
19+ if File . exists? homesteadYamlPath then
20+ Homestead . configure ( config , YAML ::load ( File . read ( homesteadYamlPath ) ) )
21+ elsif File . exists? homesteadJsonPath then
22+ Homestead . configure ( config , JSON . parse ( File . read ( homesteadJsonPath ) ) )
23+ end
24+
25+ if File . exists? afterScriptPath then
26+ config . vm . provision "shell" , path : afterScriptPath
27+ end
28+ end
Original file line number Diff line number Diff line change 2222 "phpunit/phpunit" : " ~4.0" ,
2323 "phpspec/phpspec" : " ~2.1" ,
2424 "symfony/css-selector" : " ~3.0" ,
25- "symfony/dom-crawler" : " ~3.0"
25+ "symfony/dom-crawler" : " ~3.0" ,
26+ "laravel/homestead" : " ^3.0"
2627 },
2728 "autoload" : {
2829 "classmap" : [
You can’t perform that action at this time.
0 commit comments