Skip to content

sroosa/collections

 
 

Repository files navigation

sufia

Vagrant box with test Sufia installation

Installation

Clone the repository into a directory.

Create a config/secrets.yml file containing:

development:
  secret_key_base: SECRET-KEY
  ldap_host: ldaphost.myorganisation.org
  ldap_base: ou=People,dc=myorganisation,dc=org

and customise the ldap_host and ldap_base settings as required.

In the directory, run

vagrant up

This will take quite a while to install the first time.

Once it has installed, use

vagrant ssh

to log into the server, then:

cd /opt/sufia
rails server --binding=0.0.0.0

You should then be able to access Fedora and Solr at http://localhost:8983/ and Sufia at http://localhost:3000/ .

If, during the initial vagrant up, you see an error message about the users table already existing; or you get a 503 error when you access Sufia, try exiting rails then:

rake jetty:stop
rm db/development.sqlite3
rake db:migrate
rake jetty:start

Running on subsequent occasions

On later runs, you will need to login with

vagrant ssh

then run

cd /opt/sufia
rake jetty:start
rails server --binding=0.0.0.0

(Note the additional rake step - this is done for you on the first deploy).

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 76.5%
  • HTML 17.0%
  • JavaScript 4.2%
  • CSS 1.9%
  • Other 0.4%