This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data_directory: _data/ | |
backup_directory: _backup/ | |
data: | |
contexts: | |
class: modContext | |
primary: key | |
context_settings: | |
class: modContextSetting | |
primary: | |
- context_key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//mgr events | |
if($modx->context->key == "mgr"){ | |
switch($modx->event->name){ | |
case "OnBeforeCacheUpdate": | |
if (!$obj = $modx->getObject('modSystemSetting', array('key' => 'site_file_version'))) { | |
$obj = $modx->newObject('modSystemSetting'); | |
$obj->fromArray(array( | |
'key' => 'site_file_version', | |
'xtype' => 'textfield', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{set $properties['tpl'] = $_modx->getPlaceholder('template.tpl')} | |
{if empty($properties['tpl'])} | |
{set $properties['tpl'] = "default"} | |
{/if} | |
{include "file:templates/tpl/{$properties['tpl']}.tpl"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Устанавливаем Docker | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' | |
sudo apt-get update | |
sudo apt-get install -y docker-engine | |
sudo usermod -aG docker $(whoami) | |
Перелогиниваемся. | |
----------------------------------------------------------------------------------- | |
Устанавливаем docker-compose: |
NewerOlder