μλ νμΈμ, λ²μ 3.0CEλ₯Ό 3.1CEλ‘ μ λ°μ΄νΈ νλ €κ³ ν©λλ€.
λ΄κ° λͺ λ Ήμ μ€νν λ :
php bin/console cache:clear --env=prod
λλ λ€μκ³Ό κ°μ μ€λ₯κ° μμ΅λλ€
MySQL μλ² λ²μ : 5.7.26
μνμΉ/2.4.25(λ°λΉμ)
PHP 7.2.22-1
nodejs v10.16.0
μλΌμ€ν±μμΉ 6.8.1
μλ ν립,
PIMμ μ
κ·Έλ μ΄λνκΈ° μν΄ UPGRADE.md νμΌ(PIM 루νΈμ μμ)μ λ°λμ΅λκΉ?
https://github.com/akeneo/pim-community-dev/blob/3.1/UPGRADE.md
μ΄ μ€λ₯λ₯Ό λ°μμν€λ λ¨κ³λ 무μμ
λκΉ?
λ¬Έμ μΈμ¬,
μλ νμΈμ λλμ΄λ
μ λ°μ΄νΈ μ μ°¨λ₯Ό λ°λ₯΄κΈ° μν΄ μ΄ μ½μ΄λ³΄κΈ°λ₯Ό μ μ¬μ©νμ΅λλ€.
μ΄ μ€λ₯λ "μ¬μ©μ μ§μ μ½λ λ§μ΄κ·Έλ μ΄μ " λ¨λ½μ 4λ¨κ³μμ λ°μν©λλ€. κ·Έλ¬λ μ μ°¨λ₯Ό λ€μ μ½μΌλ©΄ λ΄ κ²½μ°κ° μλ Akeneo μ€μΉλ₯Ό μ¬μ©μ μ μν κ²½μ°μμ κΉ¨λ¬μμ΅λλ€. μ λ νμ€ μ€μΉ μ€μ λλ€.
κ·Έλ¬λ μ΄ λ¨κ³λ₯Ό κΉ¨λ«μ§ λͺ»νκ³ "νμ€ νλ‘μ νΈ λ§μ΄κ·Έλ μ΄μ "μ 10λ¨κ³μμ λ©μΆλ©΄ λΉ νμ΄μ§κ° μκ³ λ‘κ·Έ μνμΉμ I:
Got error 'PHP message: PHP Fatal error: Uncaught Symfony\\Component\\Debug\\Exception\\ClassNotFoundException: Attempted to load class "VoterInitializerListener" from namespace "Knp\\Bundle\\MenuBundle\\EventListener".\nDid you forget a "use" statement for another namespace? in /var/www/html/pim-community-standard/var/cache/prod/ContainerJjy8q4b/appProdProjectContainer.php:5602\nStack trace:\n#0 /var/www/html/pim-community-standard/var/cache/prod/ContainerJjy8q4b/appProdProjectContainer.php(4668): ContainerJjy8q4b\\appProdProjectContainer->getKnpMenu_Listener_VotersService()\n#1 /var/www/html/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(229): ContainerJjy8q4b\\appProdProjectContainer->ContainerJjy8q4b\\{closure}()\n#2 /var/www/html/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(61): Symfony\\Component\\EventDispatcher\\EventDispatcher->sortListeners('kernel.request')\n#3 /var/www/html/pim-community-standard/vendor/symf...\n'
μκ³‘κ° μ λ°μ΄νΈλ νμ ¨λμ? KnpBundleμ΄ μ΅μ λ²μ μ΄ μλ μλ μμ΅λλ€.
μ곑κ°λ₯Ό 1.9.0μΌλ‘ μ λ°μ΄νΈνλλ° λμΌν μ€λ₯κ° λ°μνμ΅λλ€.
Got error 'PHP message: PHP Fatal error: Uncaught Symfony\\Component\\Debug\\Exception\\ClassNotFoundException: Attempted to load class "VoterInitializerListener" from namespace "Knp\\Bundle\\MenuBundle\\EventListener".\nDid you forget a "use" statement for another namespace? in /var/www/html/pim-community-standard/var/cache/prod/ContainerJjy8q4b/appProdProjectContainer.php:5602\nStack trace:\n#0 /var/www/html/pim-community-standard/var/cache/prod/ContainerJjy8q4b/appProdProjectContainer.php(4668): ContainerJjy8q4b\\appProdProjectContainer->getKnpMenu_Listener_VotersService()\n#1 /var/www/html/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(229): ContainerJjy8q4b\\appProdProjectContainer->ContainerJjy8q4b\\{closure}()\n#2 /var/www/html/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(61): Symfony\\Component\\EventDispatcher\\EventDispatcher->sortListeners('kernel.request')\n#3 /var/www/html/pim-community-standard/vendor/symf...\n'
λ³΄κ³ μ μμ±κΈ°
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 8 updates, 11 removals
- Removing symfony/assetic-bundle (v2.8.2)
- Removing phpoption/phpoption (1.5.0)
- Removing phpcollection/phpcollection (0.5.0)
- Removing leafo/lessphp (v0.5.0)
- Removing kriswallsmith/assetic (v1.4.0)
- Removing knplabs/knp-menu-bundle (2.1.3)
- Removing knplabs/knp-menu (2.2.0)
- Removing jms/serializer-bundle (2.0.0)
- Removing jms/serializer (1.8.1)
- Removing jms/parser-lib (1.0.0)
- Removing jms/metadata (1.7.0)
- Updating doctrine/cache (v1.6.1 => v1.8.0): Loading from cache
- Updating doctrine/annotations (v1.3.1 => v1.6.0): Loading from cache
- Installing doctrine/reflection (v1.0.0): Loading from cache
- Installing doctrine/event-manager (v1.0.0): Loading from cache
- Installing doctrine/persistence (v1.1.0): Loading from cache
- Updating doctrine/common (v2.7.2 => v2.10.0): Loading from cache
- Updating doctrine/instantiator (1.0.5 => 1.1.0): Loading from cache
- Updating doctrine/dbal (v2.5.13 => v2.7.2): Loading from cache
- Updating doctrine/orm (v2.5.14 => v2.6.3): Loading from cache
- Updating doctrine/doctrine-bundle (1.6.7 => 1.10.2): Loading from cache
- Updating akeneo/pim-community-dev (v3.0.40 => v3.1.18): Loading from cache
Writing lock file
Generating autoload files
What about running composer thanks now?
This will spread some π by sending a β
to 82 GitHub repositories of your fellow package maintainers.
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
// Clearing the cache for the dev environment with debug
// true
[OK] Cache for the "dev" environment (debug=true) was successfully cleared.
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets
Trying to install assets as relative symbolic links.
--- --------------------------- ------------------
Bundle Method / Error
--- --------------------------- ------------------
β FOSJsRoutingBundle relative symlink
β OroConfigBundle relative symlink
β PimDataGridBundle relative symlink
β PimUserBundle relative symlink
β AkeneoPimEnrichmentBundle relative symlink
β AkeneoPimStructureBundle relative symlink
β PimDashboardBundle relative symlink
β PimAnalyticsBundle relative symlink
β PimImportExportBundle relative symlink
β PimNotificationBundle relative symlink
β PimUIBundle relative symlink
--- --------------------------- ------------------
[OK] All assets were successfully installed.
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::removeSymfonyStandardFiles
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget
> php bin/console --ansi fos:js-routing:dump --target=web/js/routes.js
Dumping exposed routes.
[file+] web/js/routes.js
> php bin/console --ansi pim:installer:assets
Akeneo PIM assets
Dumping exposed routes.
[file+] /var/www/html/pim-community-standard/app/../web/js/routes.js
Installing assets as hard copies.
--- --------------------------- ----------------
Bundle Method / Error
--- --------------------------- ----------------
β FOSJsRoutingBundle copy
β OroConfigBundle copy
β PimDataGridBundle copy
β PimUserBundle copy
β AkeneoPimEnrichmentBundle copy
β AkeneoPimStructureBundle copy
β PimDashboardBundle copy
β PimAnalyticsBundle copy
β PimImportExportBundle copy
β PimNotificationBundle copy
β PimUIBundle copy
--- --------------------------- ----------------
! [NOTE] Some assets were installed via copy. If you make changes to these
! assets you have to run this command again.
[OK] All assets were successfully installed.
Generating require.js main config
12:11:45 [file+] en_US.js
12:11:45 [file+] ca_ES.js
12:11:45 [file+] da_DK.js
12:11:45 [file+] de_DE.js
12:11:45 [file+] es_ES.js
12:11:45 [file+] fi_FI.js
12:11:45 [file+] fr_FR.js
12:11:45 [file+] hr_HR.js
12:11:46 [file+] it_IT.js
12:11:46 [file+] ja_JP.js
12:11:46 [file+] nl_NL.js
12:11:46 [file+] pl_PL.js
12:11:46 [file+] pt_BR.js
12:11:46 [file+] pt_PT.js
12:11:46 [file+] ru_RU.js
12:11:46 [file+] sv_SE.js
12:11:46 [file+] tl_PH.js
12:11:46 [file+] zh_CN.js
12:11:46 [file+] sv_SE.js
12:11:46 [file+] en_NZ.js
> Akeneo\Platform\Bundle\InstallerBundle\ComposerScripts::copyUpgradesFiles
Copying migration folder from Akeneo PIM dependency to standard version.
Done.
yarn install v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 16.88s.
λͺ λ²μ μλ λμ λ§μΉ¨λ΄ μ±κ³΅νμ΅λλ€.
λ¬Έμμμ λͺ ννμ§ μμ κ²μ λ€μ λͺ λ Ήμ μ€νν΄μΌ νλ€λ κ²μ λλ€.
bin/console cache:clear --env=prod
bin/console pim:installer:assets --clean --env=prod
yarn run less
yarn run webpack
μμ¬μ μ¬μ§μμ΄ μμνμ§λ§ λ¬Έμ κ° λ°μνμ§ μμμΌλ©° μ΄μ μ λ°μ΄νΈλ μ€μΉμ μ‘μΈμ€ν μ μμ΅λλ€.
μ€μμ μμΈμ μ°Ύμμ΅λλ€. μΆμ μ
bin / console cache: clear --env = prod
var/cache/_[prod, dev]_ λλ ν 리λ₯Ό λΉμμΌ ν©λλ€. μΊμλ₯Ό μ§μ°λ λͺ λ Ήμ μ€ννλ €λ©΄ μΊμλ₯Ό μμ ν΄μΌ νλ€λ κ²μ΄ λλμ΅λλ€...;)
λ¬Έμ λ₯Ό ν΄κ²°νμ
¨λ€λ λ€νμ
λλ€.
μ΄ λ¬Έμ λ₯Ό λ«μ΅λλ€. νμν κ²½μ° μμ λ‘κ² λ€μ μ½λλ€.
κ°μ₯ μ μ©ν λκΈ
μ€μμ μμΈμ μ°Ύμμ΅λλ€. μΆμ μ
bin / console cache: clear --env = prod
var/cache/_[prod, dev]_ λλ ν 리λ₯Ό λΉμμΌ ν©λλ€. μΊμλ₯Ό μ§μ°λ λͺ λ Ήμ μ€ννλ €λ©΄ μΊμλ₯Ό μμ ν΄μΌ νλ€λ κ²μ΄ λλμ΅λλ€...;)