RedeMocambos / baobaxia

Aplicação para publicar conteúdos na rede Baobaxia
GNU General Public License v3.0
36 stars 9 forks source link

Implement logic for patching / updating the code #95

Open fernao opened 9 years ago

fernao commented 9 years ago

When a new version appears, it may need some updates of configuration files, database etc. Think how baobaxia will handle updates of its versions between different versions.

fernao commented 9 years ago

Pattern for upgrade versions: /upgrades /upgrades/[git log hash]/ /upgrades/[git log hash]/DESCRIPTION -> description and instructions to upgrade code to this version /upgrades/[git log hash]/run.sh -> if present, run codes /upgrades/[git log hash]/[other-files.*] -> used by run.sh, if needed

fernao commented 9 years ago

Create a upgrade script that get code from git and look at '/upgrades' folder if there's any upgrade needed.

fernao commented 9 years ago

related to #151