2019-10-30 21:55:32 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="form-container">
|
|
|
|
<h6><i class="fas fa-clock"></i>
|
|
|
|
Cron
|
|
|
|
</h6>
|
|
|
|
<div class="row" style="padding-top: 5px">
|
|
|
|
<div class="col-sm-12">
|
2021-03-10 00:36:56 +08:00
|
|
|
<p>A cron must be created that runs every minute calling artisan. An example is below.
|
|
|
|
<strong><a href="{{ docs_link('cron') }}" target="_blank">See the docs</a></strong></p>
|
2019-10-30 21:55:32 +08:00
|
|
|
<label style="width: 100%">
|
|
|
|
<input type="text" value="{{ $cron_path }}" class="form-control" style="width: 100%"/>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
@if($cron_problem_exists)
|
|
|
|
<div class="alert alert-danger" role="alert">
|
|
|
|
There was a problem running the cron; make sure it's setup and check logs at
|
2020-01-16 22:49:28 +08:00
|
|
|
<span class="text-monospace bg-gradient-dark">storage/logs/cron.log</span>.
|
2020-03-06 09:19:12 +08:00
|
|
|
<a href="{{ docs_link('cron') }}" target="_blank">See the docs</a>
|
2019-10-30 21:55:32 +08:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-10 00:36:56 +08:00
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<div class="row" style="padding-top: 5px">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<h5>Web Cron</h5>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<p>
|
|
|
|
If you don't have cron access on your server, you can use a web-cron service to
|
|
|
|
access this URL every minute. Keep it disabled if you're not using it. It's a
|
|
|
|
unique ID that can be reset/changed if needed for security.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6 pull-right">
|
|
|
|
<table class="table-condensed">
|
|
|
|
<tr class="text-right">
|
|
|
|
<td style="padding-right: 10px;" class="text-right">
|
|
|
|
{{ Form::open(['url' => route('admin.maintenance.cron_enable'),
|
|
|
|
'method' => 'post']) }}
|
|
|
|
{{ Form::button('Enable/Change ID', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
|
|
|
{{ Form::close() }}
|
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
|
|
|
{{ Form::open(['url' => route('admin.maintenance.cron_disable'),
|
|
|
|
'method' => 'post']) }}
|
|
|
|
{{ Form::button('Disable', ['type' => 'submit', 'class' => 'btn btn-warning']) }}
|
|
|
|
{{ Form::close() }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
|
|
|
<label style="width: 100%">
|
|
|
|
<input type="text" value="{{ $cron_url }}" class="form-control" style="width: 100%"/>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-30 21:55:32 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|