Skip to content

Commit

Permalink
Remove commented out datasources config.
Browse files Browse the repository at this point in the history
Use file_exists so build scripts don't have to use sed. This
also means we don't have additional setup instructions.
  • Loading branch information
markstory committed Nov 15, 2012
1 parent acaacbb commit 2e3b5e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -31,7 +31,6 @@ before_script:
server.listen(80, 'localhost');
console.log('TCP server listening on port 80 at localhost.');" > App/tmp/socket.js
- sudo node ./App/tmp/socket.js &
- sed -i "s/\/\/ \(require __DIR__ \. '\/datasources\.php';\)/\\1/" App/Config/bootstrap.php
- pear channel-discover pear.cakephp.org
- pear install --alldeps cakephp/CakePHP_CodeSniffer
- phpenv rehash
Expand Down
4 changes: 3 additions & 1 deletion App/Config/bootstrap.php
Expand Up @@ -67,7 +67,9 @@
*
* See App/Config/datasources.default.php for a template.
*/
// require __DIR__ . '/datasources.php';
if (file_exists(__DIR__ . '/datasources.php')) {
require __DIR__ . '/datasources.php';
}

/**
* Load logging configuration.
Expand Down

0 comments on commit 2e3b5e4

Please sign in to comment.