Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #99 from QoboLtd/project-template-update
Browse files Browse the repository at this point in the history
Merged project-template v5.1.2
  • Loading branch information
mamchenkov committed Oct 23, 2016
2 parents 22a93f5 + 62bba35 commit f9301e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -10,16 +10,14 @@ Install
When starting a new PHP project, do the following:

```bash
composer create-project qobo/project-template-wordpress
mv project-template-wordpress example.com
composer create-project qobo/project-template-wordpress example.com
cd example.com
git init
git add .
git commit -m "Initial commit"
# Finalize the setup
composer install
./vendor/bin/phake dotenv:create DB_NAME=wordpress
./vendor/bin/phake app:install
composer exec -- phake app:install DB_NAME=wordpress
```

DB_NAME, the name of the database to use, is the only setting which is required. The
Expand Down
2 changes: 1 addition & 1 deletion webroot/robots.php
Expand Up @@ -34,7 +34,7 @@
// Limit indexing on certain domains
if ($allowRobots) {
$exceptionPattern = (string)getenv('ALLOW_ROBOTS_EXCEPT_ON');
$currentDomain = empty($_SERVER['SERVER_NAME']) ? '' : $_SERVER['SERVER_NAME'];
$currentDomain = empty($_SERVER['HTTP_HOST']) ? '' : $_SERVER['HTTP_HOST'];
if ($exceptionPattern && $currentDomain && preg_match('/' . $exceptionPattern . '/i', $currentDomain)) {
$allowRobots = false;
}
Expand Down

0 comments on commit f9301e8

Please sign in to comment.