erplibre/doc/MIGRATION.md

1.2 KiB

Migration

Guide to help migration with different version.

Docker

  • Clone project if only download docker-compose
    • git init
    • git remote add origin https://github.com/erplibre/erplibre
    • git fetch
    • mv ./docker-compose.yml /tmp/temp_docker-compose.yml
    • git checkout master
    • mv /tmp/temp_docker-compose.yml ./docker-compose.yml
  • Do manually a backup of ERPLibre database (TODO implement makefile command)
  • Update ./docker-compose.yml depending of difference with git.
  • Run script make docker_exec_erplibre_gen_config
  • Stop the docker make docker_stop
  • Delete the volume, docker volume rm ${BASENAME}_erplibre-db-data
  • Start the docker make docker_run_daemon
  • Restore the backup manually.

Database migration, PostgreSQL update 11 to 12

TODO not working automatically, check last procedure and do it manually. The command to the docker is missing support when database is external.

Easy way, do a backup with ERPLibre, upgrade Postgresql, restore the same backup.

List all database :

make docker_show_databases

Vanilla

  • Run script make install_dev
  • Restart your daemon
  • Regenerate master password manually