Smooth way is to use composer, a dependency manager for PHP.
Run composer update and the job is done (almost).
If you are doing a major upgrade, find the upgrade guide down there.
static/%main_host% directory instead of %main_host%.config/routes.yaml, replace resource: "@PushwordCoreBundle/Resources/config/routes/all.yaml" by resource: "@PushwordCoreBundle/Resources/config/routes.yaml"sed -i "s|@PushwordCoreBundle/Resources/config/routes/all.yaml|@PushwordCoreBundle/Resources/config/routes.yaml|g" ./config/routes.yaml
Scan all files inside the ./templates directory.
Identify and update every Tailwind CSS class name from version 3 syntax to version 4 syntax, ensuring full compatibility with Tailwind 4’s new naming conventions and features.
https://tailwindcss.com/docs/upgrade-guide#changes-from-v3`)
./assets/webpack.config.js to ./vite.config.jsSee vendor/pushword/skeleton/vite.config.js./assets/package.json to ./package.jsoncomposer require pentatrion/vite-bundlepackages/docs/assets/)# FROM
...
assets:
{
javascripts: ["/assets/app.js?6"],
stylesheets: ["/assets/style.css?65"],
},
# TO
assets:
{
vite_javascripts: ["app"],
vite_stylesheets: ["theme"],
},
Notes :
php bin/console pushword:json:to-markdown --dry-run
php bin/console pushword:json:to-markdown --force
# by host
php bin/console pushword:json:to-markdown --host=example.com
# or by page id
php bin/console pushword:json:to-markdown --page-id=123
App\Entity\*bin/console doctrine:schema:update --forcecomposer remove pushword/svg (and from config/bundles.php)getStylesheets or getJavascriptpage_position for breadcrumb_list_positionIn your assets/webpack.config.js, upgrade the getEncore function to add at the first parameter the symfony webpack-encore dependecy (const Encore = require('@symfony/webpack-encore')).
Permit to avoid the compilation error.
TypeError: The 'compilation' argument must be an instance of Compilation
``
## To 0.1.084
* Delete src/DataFixtures folder
* Update composer.json to allow sf7 `6.*` -> `6.*|7.*`
## To 0.0.800
- Update doctrine
php bin/console make:migration && php bin/console doctrine:migrations:migrate
- Update main content's block
php vendor/pushword/admin-block-editor/src/Installer/Update795.php~
- **Update front-end to tailwind 3** by keeping only `@pushword/js-helper` as dependency in your `assets/package.json` and **simplify** `webpack.config.js` and, if needed, `app.js` and `app.css` (see the simpliest way `packages/skeleton/assets`)
## To 0.0.728
- Update stylesheets
cd assets && yarn && yarn encore production
- Update doctrine
bin/console make:migration && bin/console doctrine:migrations:migrate
## From PiedWeb/CMS 0.0.86 to Pushword
- switch dependencies from piedweb/cms to `pushword/core` (composer + src/Entity)
- install required extension (like `pushword/admin`, have a [look in the extensions list](/extensions))
- Delete symlinks in `config/packages`
- Update database
```
bin/console make:migration && bin/console doctrine:migrations:migrate```
...
apps:
- {hosts: [mywebsite.com, preprod.mywebsite.com], base_url: https://mywebsite.com}
```
feed*.xml and sitemap* files in public<!-- in mainContent and put them in customProperties's textarea