#!/bin/bash

echo "--------------"
echo "This a bash script to run rescom microservice workers"
echo "RUNS: rabbitmq:read and queue:work"
echo "--------------"

cd /var/www/html/rescom.egov.demokritos.gr

php artisan config:cache
php artisan rabbitmq:read & 
php artisan rabbitmq:read &
php artisan rabbitmq:read &
php artisan queue:work --queue=default --memory=1024 -- database
#php artisan contracts:fetch
