php - TYPO3 SURF - 部署非 TYPO3 项目
问题描述
我尝试按照官方文档使用 TYPO3 SURF 部署非 TYPO3 项目:https ://docs.typo3.org/other/typo3/surf/2.0/en-us/GettingStarted/Index.html
我在任务“SymlinkConfigurationTask”下收到以下错误:
bash: line 0: cd: /var/www/surf-test/releases/20190628085212/Configuration: No such file or directory
Got exception "Command returned non-zero return code: 1" rolling back.
In Task.php line 79:
The required option "directories" is missing.
该任务还会创建一个指向不存在的文件夹的符号链接。
这是我的部署脚本:
<?php
$node = new \TYPO3\Surf\Domain\Model\Node('T3 VM');
$node->setHostname('my-secret-host.com');
$node->setOption('password', 'secret');
$application = new \TYPO3\Surf\Application\Neos\Flow();
$application->setVersion('4.0');
$application->setDeploymentPath('/var/www/surf-test');
$application->setOption('repositoryUrl', 'git@my-secret-repo.git');
$application->addNode($node);
$deployment->addApplication($application);
有什么帮助吗?
解决方案
推荐阅读
- java - Java 字符串转日期格式
- ios - 如何在 Swift 中不断更新 ULabel 的文本
- c# - 为自动完成控件绑定继承列表
- javascript - 在第 8 面墙 aframe-js 中播放动画时,动画播放有延迟
- python - 为什么使用全局变量给出未定义?
- php - 将自定义随机过滤器添加到 Timber/Twig
- xml - 使用“复制”输入 xml u XSLT 代码添加外部元素
- django - Django admin list_filter:基于用户的 RelatedFieldListFilter
- raku - 像函数一样传递运算符
- python - Python:requests.exceptions.SSLError