sequencescape
sequencescape copied to clipboard
Deploy Limber and SS
- [x] UAT
- [x] Training
- [x] Production
Steps to deploy to prod:
- Deploy print_label_templates
ansible-playbook -i environments/<env>/hosts deploy_print_label_templates.yml
- Check if the new template is created in the PMB server path -
cd /var/lib/sprint/label_templates/
In Sequencescape:
- Deploy Sequencecape
ansible-playbook -i environments/<env> deploy_sequencescape.yml -e "github_branch=v14.15.2" -e "full_deploy=false reload_nginx=true skip_migrations=false with_quant_files=false"
-
Check if the migration to update the template is completed successfully in
barcode_printer_type
table in sequenscape_database. -
Run script in Ruby console https://gitlab.internal.sanger.ac.uk/psd/data-patch-archive/-/merge_requests/8
In Limber:
- Deploy Limber
ansible-playbook -vD deploy_limber.yml -i environments/<env> -e "github_branch=v3.31.1" -e "full_deploy=true reload_nginx=true"
-
Run the rake task
bundle exec rake pmb:register_label_templates
manually -
Check if a new record is added for the template in
label_templates
table in print_my_barcode_DB
Steps to rollback:
In Sequencescape:
-
bundle exec rake db:migrate:status
-
Rollback the last run migration -
bundle exec rake db:rollback STEP=2
(Check If there are migrations from other stories merged) -
Deploy the previous release tag
ansible-playbook -i environments/<env> deploy_sequencescape.yml -e "github_branch=v14.15.1" -e "full_deploy=false reload_nginx=true skip_migrations=false with_quant_files=false"
In Limber:
Deploy the previous release tag
ansible-playbook -vD deploy_limber.yml -i environments/<env> -e "github_branch=v3.30.0" -e "full_deploy=true reload_nginx=true"
Limber develop -> master PR https://github.com/sanger/limber/pull/1182 Sequencescape develop -> master PR https://github.com/sanger/sequencescape/pull/3690