-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the skeleton ZF2 app, puppet manifests for the server, etc.
- Loading branch information
Showing
1,752 changed files
with
217,309 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright (c) 2005-2013, Zend Technologies USA, Inc. | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
* Neither the name of Zend Technologies USA, Inc. nor the names of its | ||
contributors may be used to endorse or promote products derived from this | ||
software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
ZendSkeletonApplication | ||
======================= | ||
|
||
Introduction | ||
------------ | ||
This is a simple, skeleton application using the ZF2 MVC layer and module | ||
systems. This application is meant to be used as a starting place for those | ||
looking to get their feet wet with ZF2. | ||
|
||
|
||
Installation | ||
------------ | ||
|
||
Using Composer (recommended) | ||
---------------------------- | ||
The recommended way to get a working copy of this project is to clone the repository | ||
and use `composer` to install dependencies using the `create-project` command: | ||
|
||
curl -s https://getcomposer.org/installer | php -- | ||
php composer.phar create-project -sdev --repository-url="https://packages.zendframework.com" zendframework/skeleton-application path/to/install | ||
|
||
Alternately, clone the repository and manually invoke `composer` using the shipped | ||
`composer.phar`: | ||
|
||
cd my/project/dir | ||
git clone git://github.com/zendframework/ZendSkeletonApplication.git | ||
cd ZendSkeletonApplication | ||
php composer.phar self-update | ||
php composer.phar install | ||
|
||
(The `self-update` directive is to ensure you have an up-to-date `composer.phar` | ||
available.) | ||
|
||
Another alternative for downloading the project is to grab it via `curl`, and | ||
then pass it to `tar`: | ||
|
||
cd my/project/dir | ||
curl -#L https://github.com/zendframework/ZendSkeletonApplication/tarball/master | tar xz --strip-components=1 | ||
|
||
You would then invoke `composer` to install dependencies per the previous | ||
example. | ||
|
||
Using Git submodules | ||
-------------------- | ||
Alternatively, you can install using native git submodules: | ||
|
||
git clone git://github.com/zendframework/ZendSkeletonApplication.git --recursive | ||
|
||
Virtual Host | ||
------------ | ||
Afterwards, set up a virtual host to point to the public/ directory of the | ||
project and you should be ready to go! | ||
|
||
Alternatively — if you are using PHP 5.4 or above — you may start the internal PHP cli-server in the public | ||
directory: | ||
|
||
cd public | ||
php -S 0.0.0.0:8080 index.php | ||
|
||
This will start the cli-server on port 8080, and bind it to all network | ||
interfaces. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
# Usage: ENV=staging vagrant up | ||
environment = "development" | ||
if ENV["ENV"] && ENV["ENV"] != '' | ||
environment = ENV["ENV"].downcase | ||
end | ||
|
||
# Usage: ROLE=webserver vagrant up | ||
role = "webserver" | ||
if ENV["ROLE"] && ENV["ROLE"] != '' | ||
role = ENV["ROLE"].downcase | ||
end | ||
|
||
Vagrant.configure("2") do |config| | ||
|
||
# Turn on SSH agent forwarding | ||
config.ssh.forward_agent = true | ||
|
||
# | ||
# Development | ||
if environment == 'development' | ||
# The hostname the machine should have. | ||
config.vm.hostname = "virtfordevs.example.com" | ||
|
||
# Every Vagrant virtual environment requires a box to build off of. | ||
config.vm.box = "precise64" | ||
|
||
# The url from where the 'config.vm.box' box will be fetched if it | ||
# doesn't already exist on the user's system. | ||
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | ||
|
||
# Create a forwarded port mapping which allows access to a specific port | ||
# within the machine from a port on the host machine. In the example below, | ||
# accessing "localhost:8080" will access port 80 on the guest machine. | ||
config.vm.network :forwarded_port, guest: 80, host: 80 # apache http | ||
config.vm.network :forwarded_port, guest: 3306, host: 3306 # mysql | ||
config.vm.network :forwarded_port, guest: 10081, host: 10081 # zend http | ||
config.vm.network :forwarded_port, guest: 10082, host: 10082 # zend https | ||
config.vm.network :forwarded_port, guest: 27017, host: 27017 # mongodb | ||
|
||
# Create a private network, which allows host-only access to the machine | ||
# using a specific IP. | ||
config.vm.network :private_network, ip: "192.168.42.42" | ||
|
||
# | ||
# Puppet | ||
config.vm.provision :puppet do |puppet| | ||
# Enable provisioning with Puppet stand alone. Puppet manifests | ||
# are contained in a directory path relative to this Vagrantfile. | ||
# You will need to create the manifests directory and a manifest in | ||
# the file base.pp in the manifests_path directory. | ||
puppet.options = "--verbose --debug" | ||
puppet.manifests_path = "puppet/manifests" | ||
puppet.module_path = "puppet/modules" | ||
puppet.manifest_file = "site.pp" | ||
puppet.facter = { | ||
"vagrant" => true, | ||
"environment" => environment, | ||
"role" => "local", | ||
} | ||
end | ||
|
||
# VirtualBox | ||
config.vm.provider :virtualbox do |vb, override| | ||
# Boot with headless mode | ||
vb.gui = false | ||
|
||
# Use VBoxManage to customize the VM. For example to change memory to 512: | ||
vb.customize ["modifyvm", :id, "--memory", 512] | ||
|
||
# Enable symbolic link creation in VirtualBox | ||
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant-root", "1"] | ||
|
||
# Use NFS for shared project directory (ignored on Windows) | ||
# config.vm.synced_folder ".", "/vagrant", :nfs => true | ||
|
||
# Set permissions for shared directory | ||
# config.vm.synced_folder ".", "/vagrant", :extra => "dmode=775,fmode=664" | ||
end | ||
end | ||
|
||
# | ||
# Staging | ||
if environment == 'staging' | ||
# Every Vagrant virtual environment requires a box to build off of. | ||
config.vm.box = "dummy" | ||
|
||
# Disable automatic syncing of project directory | ||
# config.vm.synced_folder ".", "/vagrant", disabled: true | ||
|
||
# Amazon Web Services | ||
config.vm.provider :aws do |aws, override| | ||
aws.access_key_id = "KEYID" | ||
aws.secret_access_key = "SECRETACCESSSKEY" | ||
aws.instance_type = "t1.micro" | ||
aws.region = "us-east-1" | ||
aws.security_groups = [ role ] | ||
aws.tags = { | ||
"vagrant" => "true", | ||
"environment" => environment, | ||
"role" => role, | ||
} | ||
|
||
# us-east-1 | ||
aws.region_config "us-east-1" do |region| | ||
region.ami = "ami-154b247c" | ||
region.keypair_name = "ec2-key-id" | ||
end | ||
|
||
override.ssh.username = "ubuntu" | ||
override.ssh.private_key_path = "~/.ssh/ec2-key-id.pem" | ||
end | ||
|
||
# Puppet | ||
config.vm.provision :puppet do |puppet| | ||
puppet.options = "--verbose --debug" | ||
puppet.manifests_path = "puppet/manifests" | ||
puppet.module_path = "puppet/modules" | ||
puppet.manifest_file = "site.pp" | ||
puppet.facter = { | ||
"vagrant" => true, | ||
"environment" => environment, | ||
"role" => role, | ||
} | ||
end | ||
end | ||
|
||
# | ||
# Production | ||
if environment == 'production' | ||
# For now, we will avoid creating production instances via Vagrant | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "zendframework/skeleton-application", | ||
"description": "Skeleton Application for ZF2", | ||
"license": "BSD-3-Clause", | ||
"keywords": [ | ||
"framework", | ||
"zf2" | ||
], | ||
"homepage": "http://framework.zend.com/", | ||
"require": { | ||
"php": ">=5.3.3", | ||
"zendframework/zendframework": "2.2.*" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.