PHP Classes


Recommend this page to a friend!
  Classes of Edward Paul  >  Flexible PHP Coupon System  >  >  Download  
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Flexible PHP Coupon System
E-commerce system that supports discount coupons
Author: By
Last change:
Date: 2 years ago
Size: 868 bytes


Class file image Download
#!/usr/bin/env bash

set -e

 [ -f ".env.testing" ] || $(echo Please make an .env.testing file and run: php artisan key:generate --env=testing; exit 1)
export $(cat .env.testing | grep -v ^# | xargs);

echo Starting services
docker-compose up -d
echo Host:
until docker-compose exec -T mysql mysql -h -u $DB_USERNAME -p$DB_PASSWORD -D $DB_DATABASE --silent -e "show databases;"
  echo "Waiting for database connection..."
  sleep 5

echo Installing dependencies
#.scripts/ install
.scripts/ install

echo Seeding database
rm -f bootstrap/cache/*.php
docker-compose exec -T app php artisan key:generate --env=testing && echo Key Generated Successfully
docker-compose exec -T app php artisan migrate --env=testing && echo Database migrated
docker-compose exec -T app php artisan db:seed --env=testing && echo Database seeded
For more information send a message to info at phpclasses dot org.