我们正面临着发行软件包编写器的问题。我们的目标是实现DDEV + Composer + Distribution +helhum/typo3-secure(对于这样一个伟大的安全解决方案,thx a ton @helhum )。
问题/发行
当试图访问后端时,它不起作用,用CSS/JS检查这个屏幕截图https://i.imgur.com/lI5IGCE.png是不可访问的,似乎是某些目录结构(私有/公共)导致问题的原因。
安装方法
步骤1:创建项目的文件夹
mkdir my-typo3-site
cd my-typo3-site步骤2:配置PHP版本
ddev config --project-type php --php-version 7.2步骤3:安装TYPO3最新版本
ddev composer create typo3/cms-base-distribution ^9 --no-interaction
ddev config --project-type typo3
ddev start步骤5: Composer.json,安装专用和公用文件夹
"extra": {
"typo3/cms": {
"root-dir": "private",
"web-dir": "public"
}
}步骤4:使用文件夹结构(私有和公共)保护您的TYPO3
ddev composer require helhum/typo3-secure-web步骤5:创建FIRST_INSTALL文件
touch private/FIRST_INSTALL步骤6: TYPO3安装向导(成功)
Composer
由键入3/cms-基分布^9生成的编写器代码
{
"repositories": [
{ "type": "composer", "url": "https://composer.typo3.org/" }
],
"name": "typo3/cms-base-distribution",
"description" : "TYPO3 CMS Base Distribution",
"license": "GPL-2.0-or-later",
"config": {
"platform": {
"php": "7.2"
}
},
"require": {
"helhum/typo3-console": "^5.5.5",
"typo3/minimal": "^9.5",
"typo3/cms-about": "^9.5",
"typo3/cms-adminpanel": "^9.5",
"typo3/cms-belog": "^9.5",
"typo3/cms-beuser": "^9.5",
"typo3/cms-felogin": "^9.5",
"typo3/cms-fluid-styled-content": "^9.5",
"typo3/cms-form": "^9.5",
"typo3/cms-impexp": "^9.5",
"typo3/cms-info": "^9.5",
"typo3/cms-redirects": "^9.5",
"typo3/cms-reports": "^9.5",
"typo3/cms-rte-ckeditor": "^9.5",
"typo3/cms-setup": "^9.5",
"typo3/cms-seo": "^9.5",
"typo3/cms-sys-note": "^9.5",
"typo3/cms-t3editor": "^9.5",
"typo3/cms-tstemplate": "^9.5",
"typo3/cms-viewpage": "^9.5",
"helhum/typo3-secure-web": "^0.2.8"
},
"scripts":{
"typo3-cms-scripts": [
"typo3cms install:fixfolderstructure",
"typo3cms install:generatepackagestates"
],
"post-autoload-dump": [
"@typo3-cms-scripts"
]
},
"extra": {
"typo3/cms": {
"root-dir": "private",
"web-dir": "public"
}
}
}Notes
对于ddev composer来说,一切都很好,需要键入3/minimal:^9,这只会导致分发包出现问题。
分发包有什么问题吗?我很感谢你的反馈。非常感谢您的时间!
发布于 2019-04-25 10:02:05
赫雷,刚刚解决了这个问题!这只是一个改变/遵循如下命令的问题:
Step 1: Create a project's folder
Step 2: Configure PHP version
Step 3: Composer distribution package
Step 4: Create FIRST_INSTALL file
Step 5: TYPO3 Installation Wizard
Step 6: Composer.json, Setup private and public folders
Step 7: Secure your TYPO3 with folder structure private and public
Step 7: ddev composer require helhum/typo3-secure-web万岁!再次感谢@Helhum提供这么好的安全TYPO3解决方案:)
InspirePeopleToSecure
干杯,
桑杰
https://stackoverflow.com/questions/55827974
复制相似问题