Skip to content

Instantly share code, notes, and snippets.

View DiegoPino's full-sized avatar
💭
in between metadata and strawberry fields

Diego Pino Navarro DiegoPino

💭
in between metadata and strawberry fields
View GitHub Profile
@DiegoPino
DiegoPino / delegates.rb
Created October 16, 2019 13:34
Cantaloupe Version 4.1.5 delegates.rb file from Islandora VM
##
# Cantaloupe ruby delegates file for Islandora Vagrant base box
# @modifiedby: Diego Pino, [email protected]
# Tested with Version 4.1
#
# The application will create an instance of this class early in the request
# cycle and dispose of it at the end of the request cycle. Instances don't need
# to be thread-safe, but sharing information across instances (requests)
# **does** need to be done thread-safely.
#
@DiegoPino
DiegoPino / 000-default.conf
Created October 16, 2019 13:37
Apache2 configuration for Cantaloupe 4.1.5 (replaces /etc/apache2/sites-enabled/000-default.conf )
<VirtualHost *:8000>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
@DiegoPino
DiegoPino / gist:49d8331c414ee0927469bfe986dec81f
Created October 16, 2019 13:44
Steps to deploy Cantaloupe 4.1.5 on Islandora VM
cd $HOME
git clone https://github.com/cantaloupe-project/cantaloupe
cd cantaloupe
git checkout release/4.1
mvn clean package -DskipTests
sudo rm -rf /var/lib/tomcat7/webapps/cantaloupe*
sudo cp /home/vagrant/cantaloupe/target/cantaloupe-4.1.5-SNAPSHOT.war /var/lib/tomcat7/webapps/cantaloupe.war
sudo service tomcat7 start
sudo service apache2 start