# AgroPortal Release 2.8.0 deployment documentation 

# Actions

* Merge code  <https://github.com/ontoportal-lirmm/bioportal_web_ui/releases/tag/2.8.0>
* Update SOLR

  [Migrate to SOLR 8 Cloud](/doc/migrate-to-solr-8-cloud-k8yOdKXBHp)
* Update CRON config

  ```bash
  diff --git a/agroportal/cron/config/config.rb b/agroportal/cron/config/config.rb
  index b02dd055146cb75b67d86f5f207791e2af2193e5..84076b221222b223fd76d2f2a8af3a7d993046c0 100644
  --- a/agroportal/cron/config/config.rb
  +++ b/agroportal/cron/config/config.rb
  @@ -41,8 +41,8 @@ begin
       config.rest_url_prefix            = "#{$REST_URL_PREFIX}"
       config.ui_name                    = 'Agroportal'
       config.ui_host                    = "#{$UI_HOSTNAME}"
  -    config.search_server_url          = 'http://localhost:8983/solr/term_search_core1'
  -    config.property_search_server_url = 'http://localhost:8983/solr/prop_search_core1'
  +    config.search_server_url          = 'http://localhost:8983/solr'
  +    config.property_search_server_url = 'http://localhost:8983/solr'
       config.repository_folder          = "#{$DATADIR}/repository"
       config.replace_url_prefix         = true
       config.enable_security            = false
  @@ -164,8 +164,8 @@ begin
       config.redis_host           = Annotator.settings.annotator_redis_host
       config.redis_port           = Annotator.settings.annotator_redis_port
       config.enable_ontology_analytics = false
  -    config.search_index_all_url = 'http://localhost:8983/solr/term_search_core2'
  -    config.property_search_server_index_all_url = 'http://localhost:8983/solr/prop_search_core2'
  +    config.search_index_all_url = 'http://localhost:8983/solr'
  +    config.property_search_server_index_all_url = 'http://localhost:8983/solr'
       config.ontology_report_path = "#{$DATADIR}/reports/ontologies_report.json"
       config.enable_spam_deletion = false
       config.enable_pull_umls     = true
  
  ```
* Deploy NCBO CRON
* Disable notifications
* Re-index all ontologies  :

  if issues run `pry(main)> Goo.init_search_connections(true)`  in `ncbo` console
* Update API config

  ```diff
  diff --git a/agroportal/api/config/environments/appliance.rb b/agroportal/api/config/environments/appliance.rb
  index 7fd90aa3393168454e5bc4e3e192d9955f533590..0f178be80b5a62fe61a0cd06ec7a816ab87cd9e2 100644
  --- a/agroportal/api/config/environments/appliance.rb
  +++ b/agroportal/api/config/environments/appliance.rb
  @@ -41,8 +41,8 @@ begin
       config.rest_url_prefix            = "#{$REST_URL_PREFIX}"
       config.ui_name                    = 'Agroportal'
       config.ui_host                    = "#{$UI_HOSTNAME}"
  -    config.search_server_url          = 'http://localhost:8983/solr/term_search_core1'
  -    config.property_search_server_url = 'http://localhost:8983/solr/prop_search_core1'
  +    config.search_server_url          = 'http://localhost:8983/solr'
  +    config.property_search_server_url = 'http://localhost:8983/solr'
       config.repository_folder          = "#{$DATADIR}/repository"
       config.replace_url_prefix         = true
       config.enable_security            = true
  @@ -166,8 +166,8 @@ begin
       config.redis_host           = Annotator.settings.annotator_redis_host
       config.redis_port           = Annotator.settings.annotator_redis_port
       config.enable_ontology_analytics = false
  -    config.search_index_all_url = 'http://localhost:8983/solr/term_search_core2'
  -    config.property_search_server_index_all_url = 'http://localhost:8983/solr/prop_search_core2'
  +    config.search_index_all_url = 'http://localhost:8983/solr'
  +    config.property_search_server_index_all_url = 'http://localhost:8983/solr'
       config.ontology_report_path = "#{$DATADIR}/reports/ontologies_report.json"
       config.enable_spam_deletion = false
     end
  
  ```
* Deploy API
* Update UI config
* Deploy UI
* Re-enable CRON notifications
* Hide SOLR opened port

---

**Documents**

- [💁‍♂️ Acknowledgments](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/acknowledgments-15GdRXLQdm)
- [📚Publications and references](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/publications-and-references-87tEoeoGKy)
- [🗽Terms & Conditions](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/terms-conditions-naDsDo2Zxq)
- [🧞‍♂️Metadata guidelines and recommendations](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/metadata-guidelines-and-recommendations-pOFbK9sIfp)
- [📜 AgroPortal Release Notes](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/agroportal-release-notes-btKjZk5tU2)
- [ 👩‍🚀 User Guide](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/user-guide-ZszoBwfjGF)
- [📎 API Documentation](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/api-documentation-kMCurGKD97)
- [🤖 Developer Documentation](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/developer-documentation-LhsrucqGTa)
- [🗃External Documentation](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/external-documentation-vNPQCdArrr)
- [AgroPortal infrastructure](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/agroportal-infrastructure-ietsAU4kPs)