我使用Typo3 SURF作为部署工具。每次部署我都会收到此错误:
TYPO3 Fatal Error: Extension key "backend" is NOT loaded!
即使typo3temp文件夹具有适当的权限,它似乎也是一个缓存问题。我也可以在部署后加载一次网站,如果我重新加载它,则会出现致命错误...
以下是我的冲浪文件的配置:
<?php
/** @var $deployment \TYPO3\Surf\Domain\Model\Deployment */
$application = new \TYPO3\Surf\Application\TYPO3\CMS('test-stage');
$application->setOption('repositoryUrl', 'git@git.test.de:test/test_deploy.git');
$application->setOption('composerCommandPath', 'composer');
$application->setOption('applicationRootDirectory', 'Web');
$application->setOption('keepReleases', 5);
$application->setOption('context', 'Testing');
$application->setDeploymentPath('/var/www/test-stage');
$workflow = new \TYPO3\Surf\Domain\Model\SimpleWorkflow();
$workflow->addTask('\TYPO3\\Surf\\Task\\TYPO3\\CMS\\FlushCachesTask', 'switch', $application);
$workflow->defineTask('test:repairpermissions',
\TYPO3\Surf\Task\ShellTask::class,
array('command' => 'sudo chown -R www-data:www-data /var/www/test-stage/releases/current/vendor;'.
'sudo chown -R www-data:www-data /var/www/test-stage/releases/current/web;')
);
$deployment->onInitialize(function() use ($workflow, $application) {
$workflow->addTask('test:repairpermissions', 'cleanup', $application);
//$workflow->removeTask(\TYPO3\Surf\Task\Neos\Flow\SetFilePermissionsTask::class);
});
$node = new \TYPO3\Surf\Domain\Model\Node('test');
$node->setHostname('test.cloudapp.net');
$node->setOption('username', 'test');
$application->addNode($node);
$deployment->addApplication($application);
答案 0 :(得分:1)
听起来您没有安装任何扩展程序。如果您有typo3_console
作为扩展名,请尝试使用远程服务器上的install:generatepackagestates
命令运行它。
您可以在此处看到更多内容:https://docs.typo3.org/typo3cms/extensions/typo3_console/CommandReference/Index.html#install-generatepackagestates