||3 years ago|
|COPYING||3 years ago|
|CoC.md||3 years ago|
|README.md||3 years ago|
|config.ini||4 years ago|
|fabfile.py||3 years ago|
|requirements.txt||3 years ago|
service-updater - Script for updating service/application
This scenario updates the Java application on remote server with creating full backup of configuration files and database.
NB: I would now consider this scenario as an example of the implementation of a software update process, but in practice I would use configuration management systems and deployment tools.
# install python-dev libffi-dev # pip install configparser # pip install fabric
$ fab <command> backup_db Back up distributive backup_db_copy Backround upload of backup to remote server backup_files Back up files copy_config Copy configuration files copy_custom_conf Upload custom.conf to remote server copy_libs Copy libs diff_config Comparison of configuration files make_dist Make distributive (play dist) start Start service stop Stop service update Update service upload_dist Upload distributive to remote server