Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Cycling api-x stack and loading microservices in post-install #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions scripts/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,20 @@ sed -i 's|log4j.appender.FILE.File=${catalina.home}/logs/fits-service.log|log4j.
sudo cp -R /var/www/html/drupal/web/modules/contrib/search_api_solr/solr-conf/6.x/* /var/solr/data/CLAW/conf
service solr restart

# Cycle tomcat
cd /var/lib/tomcat8
service tomcat8 restart
# Cycle some of the Java stack for Api-X
service karaf-service stop
service tomcat8 stop
service activemq restart
sleep 60
service tomcat8 start
sleep 60
service karaf-service start
sleep 60

# Load microservices into Api-X
curl -i -X POST -H "Authorization: Bearer islandora" -H "Content-Type: text/plain" -d "http://localhost:8000/houdini/convert" "http://localhost:8081/services//apix:load"
curl -i -X POST -H "Authorization: Bearer islandora" -H "Content-Type: text/plain" -d "http://localhost:8000/houdini/identify" "http://localhost:8081/services//apix:load"
curl -i -X POST -H "Authorization: Bearer islandora" -H "Content-Type: text/plain" -d "http://localhost:8000/hypercube/" "http://localhost:8081/services//apix:load"

# Clear drupal cache
$DRUSH_CMD cache-rebuild