Public Repository

Last pushed: 2 days ago
Short Description
Short description is empty for this repo.
Full Description

Optimisten Kundklubb

Deployment

# Create & move to deployment directory
mkdir /path/to/deploy
cd /path/to/deploy
# Clone the repository
git clone https://github.com/c4webbutveckling/optimisten-kundklubb.git .
# Install composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar composer
# Install dependencies
composer install
# Configure environment
cp .env.example .env
php artisan key:generate
# Set APP variables (APP_ENV, APP_DEBUG, APP_URL)
# Set DB variables (DB_HOST, DB_DATABASE, DB_USERNAME, DB_PASSWORD)
# Set MAIL variables (MAIL_DRIVER,MAIL_HOST,MAIL_PORT,MAIL_USERNAME,MAIL_PASSWORD,MAIL_ENCRYPTION)
# Set SMS variables (SMS_HOST, SMS_PORT, SMS_USERNAME, SMS_PASSWORD, SMS_SENDER)
# Set NOCAPTCHA variables (NOCAPTCHA_SECRET, NOCAPTCHA_SITEKEY)
# @todo: Point server to the public folder
# @todo: Create MySQL database
# Migrate & seed database
php artisan migrate:refresh --seed
# @warning Do the following action AFTER having fully configured the application (see Configuration section).
# @todo Add the following line to cron tab
* * * * * php /path/to/deploy/artisan schedule:run >> /dev/null 2>&1

Configuration

  • administrator accounts
  • cheques rules
  • birthday
  • saint's days
  • settings

Import

Member & purchase imports are scheduled (see Tasks).
Tasks process XLS files located in storage/trygg/import/ subfolders.
Import logs are located in storage/logs/trygg/.

Tasks

Task Schedule Log directory
trygg:import-members 0 * * * * * storage/logs/trygg
trygg:import-purchases 15 * * * * * storage/logs/trygg
trygg:import-bonuses 30 * * * * * storage/logs/trygg
sendings:trigger-dispatches 5 * * * * * storage/logs/sendings
sendings:dispatch-sendings 10,15,20,25,30,35,40,45,50,55 * * * * * storage/logs/sendings
Docker Pull Command
Owner
simondubois

Comments (0)