==============
Utilities to interact with Summon, the PUL Blacklight Catalog, Springshare products, PUL Pulfa, DPUL and Princeton University Art Museum. Written using Symfony and GuzzleHTTP. See https://symfony.com/doc/current/index.html for more context and information about Silex applications.
download dmg from https://github.com/lando/lando/releases
clone repo
cd repo-name
Secret keys are to be put in both .env.local
and .env.test.local
These files are not put in git.
# .env.local & .env.test.local
APP_SECRET=XXXXX
LIB_GUIDES_KEY=YYYYY
SUMMON_AUTHCODE=ZZZZZ
Start lando with lando start
lando build
to install composer dependencies
Run lando info
to see what is being run
check in your browser (at the port lando configured)
Alias /searchit /var/www/apps/discoveryutils
<Directory "/var/www/apps/discoveryutils">
Options +Indexes
AllowOverride All
</Directory>
In the .htacess provided with the app the base path needs to be set
<IfModule mod_rewrite.c>
Options -MultiViews FollowSymLinks
RewriteEngine On
RewriteBase /utils
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ public/index.php [L]
</IfModule>
Tests use phpunit https://phpunit.de/manual/current/en/index.html
lando test
We have capistrano set up to deploy our servers
cap staging deploy
will deploy the main branch to stagingBRANCH=other cap staging deploy
will deploy the other branch to staging