Skip to content

Commit

Permalink
misc - small changes for okapi development
Browse files Browse the repository at this point in the history
  • Loading branch information
teiling88 committed Jul 2, 2017
1 parent c61e81b commit 2315dec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/okapi-update.php
Expand Up @@ -18,7 +18,7 @@
function okapi_update()
{
$GLOBALS['rootpath'] = __DIR__ . '/../htdocs/';
require_once $GLOBALS['rootpath'] . 'okapi/facade.php';
require_once __DIR__ . '/../htdocs/okapi/facade.php';
okapi\Facade::database_update();
// This may not work properly if an OKAPI update mutation function relies
// on catching exceptions. The cryptic error message
Expand Down
2 changes: 2 additions & 0 deletions bin/provision.sh
Expand Up @@ -90,6 +90,7 @@ DocumentRoot "/var/www/html/htdocs"
RewriteEngine On
RewriteRule ^((OC|GC)[A-Za-z0-9]{1,5})$ /searchplugin.php?userinput=\$1 [NC,L]
# symfony redirects
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
Expand All @@ -101,6 +102,7 @@ DocumentRoot "/var/www/html/htdocs"
</Directory>
<Directory "/var/www/html/htdocs/okapi">
DirectorySlash Off
AllowOverride All
</Directory>
Expand Down

0 comments on commit 2315dec

Please sign in to comment.