This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/controllers/application_controller.rb | |
# Add the following lines: | |
CUSTOM_LOGGER.info("info from custom logger") | |
CUSTOM_LOGGER.debug("debug from custom logger") | |
CUSTOM_LOGGER.error("error from custom logger") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Header set Access-Control-Allow-Origin "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl \ | |
--verbose \ | |
--request OPTIONS \ | |
http://localhost:3001/api/configuration/visitor \ | |
--header 'Origin: http://localhost:9292' \ | |
--header 'Access-Control-Request-Headers: Origin, Accept, Content-Type' \ | |
--header 'Access-Control-Request-Method: GET' | |
# http://nils-blum-oeste.net/cors-api-with-oauth2-authentication-using-rails-and-angularjs/#.UQJeLkp4ZyE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /path/to/server/solr-webapp/webapp/WEB-INF/web.xml | |
<filter> | |
<filter-name>cross-origin</filter-name> | |
<filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class> | |
<init-param> | |
<param-name>allowedOrigins</param-name> | |
<param-value>http://localhost*</param-value> | |
</init-param> | |
<init-param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# where 'dev' is the branch: | |
+refs/pull/*:refs/remotes/origin/pr/* +refs/heads/dev:refs/remotes/origin/dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
solr 6.1 and zookeeper | |
1. install solr via puppet | |
2. stop solr | |
3. install zookeeper | |
cd /cul/share | |
sudo wget http://apache.claz.org/zookeeper/stable/ | |
zookeeper-3.4.8.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO: Initializing ProtocolHandler ["ajp-bio-8009"] | |
Sep 08, 2016 3:38:25 PM org.apache.coyote.AbstractProtocol init | |
INFO: Initializing ProtocolHandler ["http-bio-8080"] | |
Sep 08, 2016 3:38:25 PM org.apache.catalina.startup.Catalina load | |
INFO: Initialization processed in 560 ms | |
Sep 08, 2016 3:38:25 PM org.apache.catalina.core.StandardService startInternal | |
INFO: Starting service Catalina | |
Sep 08, 2016 3:38:25 PM org.apache.catalina.core.StandardEngine startInternal | |
INFO: Starting Servlet Engine: Apache Tomcat/7.0.42 | |
Sep 08, 2016 3:38:25 PM org.apache.catalina.startup.HostConfig deployWAR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sep 09, 2016 9:17:49 AM org.apache.catalina.core.StandardEngine startInternal | |
INFO: Starting Servlet Engine: Apache Tomcat/7.0.42 | |
Sep 09, 2016 9:17:49 AM org.apache.catalina.startup.HostConfig deployWAR | |
INFO: Deploying web application archive /cul/app/tomcat/sf-lib-dig-020.serverfarm.cornell.edu/webapps/fedora.war | |
Sep 09, 2016 9:18:00 AM org.apache.catalina.core.ApplicationContext log | |
INFO: Spring WebApplicationInitializers detected on classpath: [org.glassfish.jersey.server.spring.SpringWebApplicationInitializer@69e58aeb] | |
Sep 09, 2016 9:18:00 AM org.apache.catalina.core.ApplicationContext log | |
INFO: Initializing Spring root WebApplicationContext | |
09:18:00.362 [localhost-startStop-1] INFO o.s.web.context.ContextLoader - Root WebApplicationContext: initialization started | |
09:18:00.447 [localhost-startStop-1] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [servletConfigInitParams] PropertySource with lowest search precedence |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO 19:20:06.525 (ModeShapeRepositoryFactoryBean) Using repo config (classpath): file:/cul/app/tomcat/aws-110-046.internal.library.cornell.edu/webapps/fedora/WEB-INF/classes/config/minimal-default/repository.json | |
INFO 19:20:06.533 (DefaultPropertiesLoader) Loading properties | |
INFO 19:20:06.534 (DefaultPropertiesLoader) com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean.default.objectStoreDir = /cul/data/fedora/com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean.default.objectStoreDir | |
INFO 19:20:06.534 (DefaultPropertiesLoader) com.arjuna.ats.arjuna.objectstore.objectStoreDir = /cul/data/fedora/com.arjuna.ats.arjuna.objectstore.objectStoreDir | |
INFO 19:20:06.534 (DefaultPropertiesLoader) fcrepo.ispn.cache = /cul/data/fedora/fcrepo.ispn.cache | |
INFO 19:20:06.534 (DefaultPropertiesLoader) fcrepo.ispn.binary.cache = /cul/data/fedora/fcrepo.ispn.binary.cache | |
INFO 19:20:06.534 (DefaultPropertiesLoader) fcrepo.binary.directory = /cul/data/fedora/fcrepo.binary.directory | |
INFO 19:20:06.535 (DefaultPropertiesLoader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule !/status https://%{SERVER_NAME}%{REQUEST_URI} [L,R] | |
</IfModule> |