These are the instructions to get Avalon up and running on a clean OSX machine. You may already have some of these tools.
Install developer tools
Install dependent packages.
You need to compile ruby with openssl support for CAS login. Otherwise it will crash ruby.
Install RVM, we'll use RVM to manage Ruby (http://rvm.io/)
Reload shell environment using instructions given in rvm installation output.
If this fails with rubygems not installing run
rvm use ruby; rvm reinstall ruby-1.9.3
Make sure ruby installed correctly
Install bundler for managing dependencies
Install Java if it is not already present. To check you can execute
Install and setup Git
Download and install Git
The next step is for committers.
Create an account on github and set up SSH keys. For more help see the detailed instructions.
Install Matterhorn dependencies
Download Matterhorn's dependency installation scripts
Read the README.txt file for instructions on how to run the ./menu3p installation script.
This may take a LONG time to run so have something else to keep you busy!
Go to your workspace. Download and install avalon from github as well as setting up all the gems required for a functioning installation.
On OS X 10.9 Mavericks and later, before running `bundle install`
Setup config files:
Copy config/avalon.yml.example to config/avalon.yml
Copy config/authentication.yml.example to config/authentication.yml
Uncomment "Avalon Lti OAuth" section of config/authentication.yml
Copy config/lti.yml.example to config/lti.yml
Copy config/controlled_vocabulary.yml.example to config/controlled_vocabulary.yml
Copy config/secrets.yml.example to config/secrets.yml
Use rake secret to add a `secret_key_base` to the development section of config/secrets.yml
Use rake secret to add a `secret_key_base` to the test section of config/secrets.yml
Prepare the databases
Install the hydra-jetty, avalon-felix, and avalon-red5 submodules. The hydra-jetty submodule contains Fedora and Solr and can be run via jettywrapper rake tasks. The avalon-felix submodule is configured for use with Opencast Matterhorn. avalon-red5 is configured to support Matterhorn integration out of the box. These two services can also be controlled with rake tasks. After installing them force tracking of the master branch.
Start all services
From the directory where you installed Avalon start up your Rails server.
Navigate to http://localhost:3000