首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >通过composer文件夹结构和下一步将TYPO3从8.7升级到9.5

通过composer文件夹结构和下一步将TYPO3从8.7升级到9.5
EN

Stack Overflow用户
提问于 2018-10-19 17:57:05
回答 1查看 885关注 0票数 0

我正在尝试通过composer将TYPO3 8实例升级到TYPO3 9。我希望你能帮助我。

我尝试过以下几种方法:

代码语言:javascript
复制
composer remove dmitryd/typo3-realurl

composer remove typo3/cms

composer remove friendsoftypo3/extension-builder

composer remove typo3-ter/http2-push

composer require typo3/cms-about typo3/cms-adminpanel typo3/cms-backend typo3/cms-belog typo3/cms-beuser typo3/cms-core typo3/cms-extbase typo3/cms-extensionmanager typo3/cms-filelist typo3/cms-fluid typo3/cms-fluid-styled-content typo3/cms-form typo3/cms-frontend typo3/cms-impexp typo3/cms-info typo3/cms-install typo3/cms-lowlevel typo3/cms-opendocs typo3/cms-recordlist typo3/cms-recycler typo3/cms-redirects typo3/cms-reports typo3/cms-rte-ckeditor typo3/cms-scheduler typo3/cms-seo typo3/cms-setup typo3/cms-tstemplate typo3/cms-viewpage arminvieweg/dce:^1.6 georgringer/news:^7.0.6 helhum/typo3-console --update-with-dependencies --ignore-platform-reqs

现在我有了一个文件夹结构,如:

代码语言:javascript
复制
-vendor
-var
-public
-|-typo3
-|-tpo3conf
-|-|-ext
-web
-|-fileadmin
-|-typo3conf
-|-typo3temp
-|-uploads

LocalConfiguration、PackageStates、自制扩展等位于/web/typo3conf文件夹中。更新的扩展位于/public/typo3conf/ext文件夹中。

这看起来很奇怪。通过composer升级的最佳实践是什么?下一步是什么?例如,只要将fileadmin移到public就会感觉不对劲。

EN

回答 1

Stack Overflow用户

发布于 2018-10-23 18:22:39

这在赫尔穆特·胡梅尔的帮助下解决了这个问题。

此外,您还需要删除未使用的第三方扩展,如realurl,并更新您的自定义扩展。

代码语言:javascript
复制
composer remove typo3/cms-context-help typo3/cms-documentation typo3/cms-func typo3/cms-info-pagetsconfig typo3/cms-wizard-crpages typo3/cms-wizard-sortpages

代码语言:javascript
复制
composer require \
"typo3/minimal:^9.5" \
"typo3/cms-core:^9.5" \
"typo3/cms-about:*" \
"typo3/cms-belog:*" \
"typo3/cms-beuser:*" \
"typo3/cms-felogin:*" \
"typo3/cms-fluid-styled-content:*" \
"typo3/cms-form:*" \
"typo3/cms-impexp:*" \
"typo3/cms-info:*" \
"typo3/cms-rte-ckeditor:*" \
"typo3/cms-scheduler:*" \
"typo3/cms-setup:*" \
"typo3/cms-sys-note:*" \
"typo3/cms-t3editor:*" \
"typo3/cms-tstemplate:*" \
"typo3/cms-viewpage:*" \
--update-with-all-dependencies

建议存储公共可访问文件的位置是" public“文件夹。你的文件管理,typo3conf,typo3temp等现在应该在这个文件夹中。我认为在一个较老的版本中,"web“已经被用来做这件事,但现在应该被"public”取代。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52890055

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档