-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
184 changed files
with
27,133 additions
and
2,098 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
tmp/* | ||
[Cc]onfig/core.php | ||
[Cc]onfig/database.php | ||
app/tmp/* | ||
app/[Cc]onfig/core.php | ||
app/[Cc]onfig/database.php | ||
!empty | ||
app/webroot/img/artefacts/* | ||
*.vagrant | ||
|
||
.vagrant/machines/default/virtualbox/private_key | ||
app/tmp | ||
|
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,18 @@ | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine on | ||
RewriteRule ^$ app/webroot/ [L] | ||
RewriteRule (.*) app/webroot/$1 [L] | ||
</IfModule> | ||
<IfModule mod_expires.c> | ||
ExpiresActive on | ||
ExpiresDefault "access plus 1 month" | ||
ExpiresByType text/cache-manifest "access plus 0 seconds" | ||
ExpiresByType image/gif "access plus 1 month" | ||
ExpiresByType image/png "access plus 1 month" | ||
ExpiresByType image/jpg "access plus 1 month" | ||
ExpiresByType image/jpeg "access plus 1 month" | ||
ExpiresByType video/ogg "access plus 1 month" | ||
ExpiresByType audio/ogg "access plus 1 month" | ||
ExpiresByType video/mp4 "access plus 1 month" | ||
ExpiresByType video/webm "access plus 1 month" | ||
</IfModule> |
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,73 @@ | ||
# How to contribute | ||
|
||
CakePHP loves to welcome your contributions. There are several ways to help out: | ||
* Create an [issue](https://github.com/cakephp/cakephp/issues) on GitHub, if you have found a bug | ||
* Write test cases for open bug issues | ||
* Write patches for open bug/feature issues, preferably with test cases included | ||
* Contribute to the [documentation](https://github.com/cakephp/docs) | ||
|
||
There are a few guidelines that we need contributors to follow so that we have a | ||
chance of keeping on top of things. | ||
|
||
## Getting Started | ||
|
||
* Make sure you have a [GitHub account](https://github.com/signup/free). | ||
* Submit an [issue](https://github.com/cakephp/cakephp/issues), assuming one does not already exist. | ||
* Clearly describe the issue including steps to reproduce when it is a bug. | ||
* Make sure you fill in the earliest version that you know has the issue. | ||
* Fork the repository on GitHub. | ||
|
||
## Making Changes | ||
|
||
* Create a topic branch from where you want to base your work. | ||
* This is usually the master branch. | ||
* Only target release branches if you are certain your fix must be on that | ||
branch. | ||
* To quickly create a topic branch based on master; `git branch | ||
master/my_contribution master` then checkout the new branch with `git | ||
checkout master/my_contribution`. Better avoid working directly on the | ||
`master` branch, to avoid conflicts if you pull in updates from origin. | ||
* Make commits of logical units. | ||
* Check for unnecessary whitespace with `git diff --check` before committing. | ||
* Use descriptive commit messages and reference the #issue number. | ||
* Core test cases should continue to pass. You can run tests locally or enable | ||
[travis-ci](https://travis-ci.org/) for your fork, so all tests and codesniffs | ||
will be executed. | ||
* Your work should apply the [CakePHP coding standards](http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html). | ||
|
||
## Which branch to base the work | ||
|
||
* Bugfix branches will be based on master. | ||
* New features that are backwards compatible will be based on next minor release | ||
branch. | ||
* New features or other non backwards compatible changes will go in the next major release branch. | ||
|
||
## Submitting Changes | ||
|
||
* Push your changes to a topic branch in your fork of the repository. | ||
* Submit a pull request to the repository in the cakephp organization, with the | ||
correct target branch. | ||
|
||
## Test cases and codesniffer | ||
|
||
CakePHP tests requires [PHPUnit](http://www.phpunit.de/manual/current/en/installation.html) | ||
3.7, version 4 is not compatible. To run the test cases locally use the following command: | ||
|
||
./lib/Cake/Console/cake test core AllTests --stderr | ||
|
||
To run the sniffs for CakePHP coding standards: | ||
|
||
phpcs -p --extensions=php --standard=CakePHP ./lib/Cake | ||
|
||
Check the [cakephp-codesniffer](https://github.com/cakephp/cakephp-codesniffer) | ||
repository to setup the CakePHP standard. The [README](https://github.com/cakephp/cakephp-codesniffer/blob/master/README.mdown) contains installation info | ||
for the sniff and phpcs. | ||
|
||
# Additional Resources | ||
|
||
* [CakePHP coding standards](http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html) | ||
* [Existing issues](https://github.com/cakephp/cakephp/issues) | ||
* [Development Roadmaps](https://github.com/cakephp/cakephp/wiki#roadmaps) | ||
* [General GitHub documentation](https://help.github.com/) | ||
* [GitHub pull request documentation](https://help.github.com/send-pull-requests/) | ||
* #cakephp IRC channel on freenode.org |
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
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,34 @@ | ||
# Vagrant file for provisioning Bootlegger Server Dev Environment | ||
# Run: | ||
# vagrant up | ||
# | ||
# Website will be accessible on port localhost:8080 | ||
# Mongo is accessible on port 27018 | ||
# | ||
# You will need to edit your AWS, Google and Facebook credentials in | ||
# /vagrant/config/local.js | ||
# | ||
# To restart server: | ||
# vagrant ssh | ||
# pm2 restart app | ||
|
||
|
||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
Vagrant.configure(2) do |config| | ||
config.vm.hostname = "Past Paths Dev" | ||
config.vm.box = "ubuntu/trusty64" | ||
config.vm.hostname ="past-paths-dev" | ||
config.vm.provider "virtualbox" do |v| | ||
v.memory = 2048 | ||
end | ||
config.vm.network "forwarded_port", guest: 80, host: 2200, auto_correct:true | ||
config.vm.network "forwarded_port", guest: 7474, host: 7575, auto_correct:true | ||
config.vm.network "forwarded_port", guest: 27017, host: 27018, auto_correct:true | ||
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" | ||
config.vm.provision :shell, path: "bootstrap.sh" | ||
config.vm.synced_folder ".", "/vagrant", owner: "www-data", group: "www-data" | ||
|
||
config.vm.post_up_message = "Past Paths Server Development Environment Started. View the README.md file for more information." | ||
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,5 @@ | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine on | ||
RewriteRule ^$ webroot/ [L] | ||
RewriteRule (.*) webroot/$1 [L] | ||
</IfModule> |
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
Oops, something went wrong.