class HostingUpdate extends Base
{
protected static $_data = [
- 'hosting' => ['host' => 'clockwork.cubedesigners.com', 'basepath' => '/data/fluidbook/hosting'],
- 'hosting2' => ['host' => 'clockwork.cubedesigners.com', 'basepath' => '/data/fluidbook/hosting2'],
+ 'hosting' => ['host' => 'godzilla.cubedesigners.com', 'basepath' => '/data/fluidbook/hosting'],
+ 'hosting2' => ['host' => 'godzilla.cubedesigners.com', 'basepath' => '/data/fluidbook/hosting2'],
'ushosting' => ['host' => 'kingkong.cubedesigners.com', 'basepath' => '/home/fluidbook/data/hosting'],
];
namespace App\Models;
use App\Http\Controllers\Admin\Operations\ServerOperation;
+use App\Jobs\HostingUpdate;
use Cubist\Backpack\Magic\Fields\Checkbox;
use Cubist\Backpack\Magic\Fields\Table;
use Cubist\Backpack\Magic\Fields\Textarea;
public function setFields()
{
$hostingProtocols = static::getHostingProtocols();
- $nothostingProtocols = array_diff(array_keys($this->getProtocols()),$hostingProtocols);
+ $nothostingProtocols = array_diff(array_keys($this->getProtocols()), $hostingProtocols);
parent::setFields();
$this->getField('base_url')->setAttribute('when', ['protocol' => $nothostingProtocols]);
public function onSaved(): bool
{
$this->updateHtaccess();
+ dispatch(new HostingUpdate());
return parent::onSaved();
}
if mountpoint -q "/mnt/hosting"; then
:
else
- sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o uid=1002 -o gid=33 -o allow_other fluidbook@clockwork.cubedesigners.com:/data/fluidbook/hosting /mnt/hosting
+ sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o uid=1002 -o gid=33 -o allow_other fluidbook@godzilla.cubedesigners.com:/data/fluidbook/hosting /mnt/hosting
fi
mkdir -p /mnt/hosting2
if mountpoint -q "/mnt/hosting2"; then
:
else
- sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o uid=1002 -o gid=33 -o allow_other fluidbook@clockwork.cubedesigners.com:/data/fluidbook/hosting2 /mnt/hosting2
+ sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o uid=1002 -o gid=33 -o allow_other fluidbook@godzilla.cubedesigners.com:/data/fluidbook/hosting2 /mnt/hosting2
fi
mkdir -p /application/usstorage