Shell script :
#!/bin/bash
cd /var/www/vhosts/example.com/httpdocs
drush="php -c /var/www/vhosts/example.com/httpdocs/drush.ini /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/drush"
$drush sapi-c
$drush sapi-i --batch-size=500
$drush ws
$drush status
drush.ini:
safe_mode =
open_basedir =
max_execution_time = 3600
max_file_uploads = 20
max_input_time = 3600
memory_limit = 8G
Cronjob (++)
1 1 * * * /var/www/vhosts/example.com/httpdocs/scripts/cron-solr-index.sh >> /var/www/vhosts/example.com/httpdocs/scripts/cron-solr-index.log
Neuen Kommentar schreiben