composer install --optimize-autoloader --no-dev
php artisan key:generate
php artisan migrate --force
php artisan db:seed --force
php artisan migrate-seed:tenant --force
php artisan storage:link
php artisan passport:install
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear
apt-get install language-pack-ar

echo "install supervisor and setup the included configuration file vom-worker.conf
supervisorctl reread
supervisorctl update
supervisorctl start vom-emails-worker:*
supervisorctl start vom-user-permission-update-worker:*
supervisorctl start vom-user-profile-update-worker:*
supervisorctl start vom-delete-tenant-worker:*
supervisorctl start vom-fiscal-year-update-worker:*
supervisorctl start vom-integration-syncing-worker:*
supervisorctl start vom-notify-subscription-worker:*
supervisorctl start vom-register-verification-worker:*
supervisorctl start vom-sync-orders-worker:*
supervisorctl start vom-update-journal-entry-worker:*
supervisorctl start vom-vom-company-invoice-worker:*
supervisorctl start vom-webhook-job-worker:*

ln -s /var/www/html/vom/app/scripts/post-merge /var/www/html/vom/.git/hooks/post-merge
