=================
Location Mapper for Firestone Library
Current Requirements
A .lando.yml file is provided - You will need to install Lando: https://docs.devwithlando.io/.
git clone git@github.com:pulibrary/firestone_locator.git
cd firestone_locator
lando start
(make sure Docker is running)gzip -d locator.seed.sql.gz
lando db-import locator.seed.sql --host database
lando mysql locator_stage
SET autocommit=0 ; source locator.seed.sql ; COMMIT ;
cd includes
cp db_lando_config.php db_config.php
lando info
includes/db_config.php
set the value of BASE_URL to that value with a trailing slash. Should be something like
http://localhost:32807/
images/production/f
and images/stage/f
.Tests use phpunit https://phpunit.de/manual/current/en/index.html
lando test
lando php phpunit-8.phar --filter methodName tests/FileName.php
For example, if you want to run the testLinks
method in the CompareProdTest
class in the CompareProdTest.php
file, you would run:
lando php phpunit-8.phar --filter testLinks tests/CompareProdTest.php
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
cap -T
gives you a list of commands that can be run