Skip to content

Commit a472d8e

Browse files
committed
And we are live.
1 parent 9742025 commit a472d8e

File tree

188 files changed

+42
-12315
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+42
-12315
lines changed

ReadMe.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# VagrantPHP
2+
3+
Simple to use Vagrant virtual host setup for you to handle of your PHP 5.5 development. All that you have to do to get started is run the started command:
4+
5+
* `git clone https://www.github.com/JenkinsDev/VagrantPHP`
6+
* `cd VagrantPHP`
7+
* `vagrant up`
8+
9+
Now all that is left is to put your projects in the `sites` directory and code to your hearts content! When you are done you can run `vagrant halt` to freeze the Vagrant VM.
10+
11+
## Databases
12+
13+
### MySQL
14+
15+
IP: localhost/127.0.0.1
16+
Port: 33060 (This is forwarded to our VM's 3306 port)
17+
Username: root
18+
Password: password
19+
20+
### MongoDB
21+
22+
IP: localhost/127.0.0.1
23+
Port: 20017 (This is forwarded to our VM's 27017 port)
24+
Username: root
25+
Password: password
26+
27+
### Redis
28+
29+
IP: localhost/127.0.0.1
30+
Port: 63790 (This is forwarded to our VM's 6379 port)

Vagrantfile

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,17 @@
44
VAGRANTFILE_API_VERSION = "2"
55

66
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
7-
# VM Box
8-
config.vm.box = "hashicorp/precise64"
7+
config.vm.box = "DJenkinsDev/VagrantPHP"
8+
config.vm.box_version = "0.1.0"
9+
config.vm.box_check_update = true
910

10-
# Port forwarding to NginX
11+
# Port Forwarding for:
12+
## NginX
1113
config.vm.network "forwarded_port", guest: 80, host: 8080
12-
13-
# REQUIRES Users to have the Omnibus Vagrant package installed.
14-
config.omnibus.chef_version = :latest
15-
16-
### Provisioning!
17-
# We will go ahead and make sure we run apt-get update before
18-
# running any other provisions. This way we are always updated with
19-
# urls.
20-
config.vm.provision "shell", inline: "apt-get update"
21-
22-
# Provision our software with chef solo!
23-
config.vm.provision "chef_solo" do |chef|
24-
chef.add_recipe "apt"
25-
chef.add_recipe "build-essential"
26-
chef.add_recipe "ohai"
27-
chef.add_recipe "nginx::source"
28-
chef.add_recipe "php55-cookbook"
29-
chef.add_recipe "php-fpm"
30-
31-
chef.log_level = :debug
32-
33-
chef.json = {
34-
:nginx => {
35-
:version => "1.7.0"
36-
},
37-
:mysql_password => "foo"
38-
}
39-
end
40-
### End Provisioning
14+
## MySQL
15+
config.vm.network "forwarded_port", guest: 3306, host: 33060
16+
## MongoDB
17+
config.vm.network "forwarded_port", guest: 27017, host: 20017
18+
## Redis
19+
config.vm.network "forwarded_port", guest: 6379, host: 63790
4120
end

cookbooks/apt/CHANGELOG.md

Lines changed: 0 additions & 183 deletions
This file was deleted.

0 commit comments

Comments
 (0)