-
Notifications
You must be signed in to change notification settings - Fork 1
Scholar Beta Environment
Glen Horton edited this page Jun 14, 2017
·
11 revisions
Server: https://scholar-beta.uc.edu
GitHub (beta-stable branch): https://github.com/uclibs/scholar_uc/tree/beta-stable
- App: /opt/rails-apps/scholar_uc_beta
- Solr: /opt/solr
- Fedora: /opt/fedora-data
-
Start the rails app first
sudo su - webapp
cd /opt/rails-apps/scholar_uc_beta
bundle exec puma -b tcp://127.0.0.1:9292 -d
- Ignore this step for now:
sidekiq -q ingest -q default -q event &
-
Start the nginx server
-
sudo service nginx start
or restart withsudo service nginx restart
-
- Start:
sudo service solr start
- Stop:
sudo service solr stop
- Start:
sudo service tomcat start
- Stop:
sudo service tomcat stop
sudo su - webapp
cd /opt/rails-apps/scholar_uc_beta
git checkout develop
git pull
git checkout beta-stable
git merge develop
bundle install
-
bundle exec rake db:migrate
(if needed) - Restart the app server (see above)
- sudo yum install tomcat-webapps tomcat-admin-webapps
- sudo wget http://repo1.maven.org/maven2/org/fcrepo/fcrepo-webapp/4.7.1/fcrepo-webapp-4.7.1.war
- sudo mkdir /opt/fedora-data
- sudo chown tomcat /opt/fedora-data/
- cd /opt
- sudo wget http://mirrors.ocf.berkeley.edu/apache/tomcat/tomcat-8/v8.5.14/bin/apache-tomcat-8.5.14.tar.gz
- sudo tar xzf apache-tomcat-8.5.14.tar.gz
- sudo chown -R tomcat:tomcat /opt/apache-tomcat-8.5.14
- sudo su - tomcat
- export CATALINA_BASE="/opt/apache-tomcat-8.5.14"; export CATALINA_HOME="/opt/apache-tomcat-8.5.14"; export CATALINA_TMPDIR="/opt/apache-tomcat-8.5.14/temp"; export CLASSPATH="/opt/apache-tomcat-8.5.14/bin/bootstrap.jar:/opt/apache-tomcat-8.5.14/bin/tomcat-juli.jar"
- export JAVA_OPTS="-Dfcrepo.home=/opt/fedora-data -Dfcrepo.modeshape.configuration=classpath:/config/file-simple/repository.json -Djava.awt.headless=true -XX:+UseG1GC -XX:+UseCompressedOops -XX:-UseLargePagesIndividualAllocation -XX:MaxPermSize=128M -Xms4096m -Xmx4096m -Djava.util.logging.config.file=/opt/apache-tomcat-8.5.14/conf/logging.properties -server"
- export JRE_HOME="/home/tomcat/jdk1.8.0_112"
- sudo cp fcrepo-webapp-4.7.1.war apache-tomcat-8.5.14/webapps/fedora.war
- /opt/apache-tomcat-8.5.14/bin/startup.sh
- cd /opt
- sudo wget http://archive.apache.org/dist/lucene/solr/6.5.0/solr-6.5.0.tgz.md5
- sudo wget http://archive.apache.org/dist/lucene/solr/6.5.0/solr-6.5.0.tgz
- (verify the checksum)
- sudo tar -xzf solr-6.5.0.tgz
- sudo solr-6.5.0/bin/install_solr_service.sh /opt/solr-6.5.0.tgz
- sudo service solr stop
- sudo vim /etc/default/solr.in.sh (set the port number)
- sudo chown -R solr /opt/solr-6.5.0
- sudo service solr start
- sudo su - solr
- /opt/solr/bin/solr create -c collection1 -d basic_configs -p 9501
- ln -s /opt/rails-apps/scholar_uc_beta/solr/config/schema.xml /var/solr/data/collection1/conf/schema.xml
- rm /var/solr/data/collection1/conf/solrconfig.xml
- ln -s /opt/rails-apps/scholar_uc_beta/solr/config/solrconfig.xml /var/solr/data/collection1/conf/solrconfig.xml
- exit
- sudo service solr stop
- sudo service solr start
- Verify at http://curly.libraries.uc.edu:9501