Skip to content

Latest commit

 

History

History
174 lines (122 loc) · 3.9 KB

upgrade.md

File metadata and controls

174 lines (122 loc) · 3.9 KB

Upgrade log.

v4.1 => v4.2.0

As part of v4.2.0 the migrations have been cleaned up. This was done to make it possible to build os2display/admin from a clean db. To upgrade from v4.1.0 => v4.2.0 do the following. This will cleanup the migrations table and set the correct migration point before migration to the newest version.

git fetch
git checkout v4.2.0
composer install
php app/console doctrine:query:sql "TRUNCATE TABLE migration_versions"
php app/console doctrine:migrations:version --add 20160622153459 --no-interaction
php app/console doctrine:migrations:version --add 20160629145821 --no-interaction
php app/console doctrine:migrations:migrate
nano app/config/parameters.yml:
 - locale: da
 - version: v4.2.0
php app/console cache:clear --env=prod
php app/console ik:templates:load
php app/console ik:reindex

The reindex is necessary because the groups field has to be indexed to be searchable.

3.5.11 => 4.0.0

git fetch
git checkout v4.0.0

Templates not in default_templates should be added to the web/templates/ folder of admin.

cd web/templates

git clone [email protected]:aakb/itk_templates.git
cd itk_templates
git checkout v1.0.0
cd ..

git clone [email protected]:aakb/dokk1_templates.git
cd dokk1_templates
git checkout v1.0.0
cd ..

git clone [email protected]:aroskanalen/mso_templates.git
cd mso_templates
git checkout v1.0.0
cd ..

git clone [email protected]:aroskanalen/aarhus_templates.git
cd aarhus_templates
git checkout v1.0.0
cd ..

git clone [email protected]:aroskanalen/mbu_templates.git
cd mbu_templates
git checkout v1.0.0
cd ..

cd ../..
composer install
app/console doctrine:migrations:migrate
app/console ik:templates:load

Update the version tag in app/config/parameters.yml.

app/console cache:clear --env=prod

Upgrade search-node to latest version.

Search node

  • Should be updated to newest version.

3.2.1 => 3.3.0

Steps

  • Change release versions in configs (admin/app/config/parameters.yml and screen/app/config.js).

Admin

  • app/console ik:templates:load (To get the latest version of the templates to the screens).

Screen

  • Add parameter to screen/app/config.js:
  "fallback_image": null
 
  • If need for other fallback_image, add a fallback image to screen/assets/images/fallback_override.png and set the parameter above to:
   "fallback_image": "assets/images/fallback_override.png"
 

3.2.0 => 3.2.1

Steps

  • Change release versions in configs (admin/app/config/parameters.yml and screen/app/config.js).

3.1.0 => 3.2.0

Steps

  • Change version in configs (admin/app/config/parameters.yml and screen/app/config.js).
  • app/console ik:templates:load (To get the latest version of the templates to the screens).

3.1.0

Admin

  • Symfony 2.6 -> 2.7 upgrade
  • Slide and screen templates can be selected in the UI.

Steps

  • Copy the list with templates from parameters.yml
  • composer install
  • app/console cache:clear
  • app/console doctrine:schema:update --force
  • app/console ik:templates:load
  • app/console cache:clear
  • Login to the site as administrator and select the templates that should be available for the site.
  • Update parameters.yml with the following lines
    version: [RELEASE_VERSION]
    
    itk_log_version: 1
    itk_log_error_callback: /api/error
    itk_log_log_to_console: false
    itk_log_log_level: all
  

Screen

  • Update app/config.js needs to have the new log lines added
  "version": "[RELEASE_VERSION]",
  "itkLog": {
    "version": "1",
    "errorCallback": "https://admin-[client name].aroskanalen.dk/api/error",
    "logToConsole": false,
    "logLevel": "error"
  }

Middleware

  • Node modules upgrade (update.sh)

Steps

  • ./update.sh
  • redis-cli -> select [DB] -> FLUSHALL
  • Restart the supervisor service.
  • Push content in admin app/console ik:push --force

Search node

  • No updates required-