-
Notifications
You must be signed in to change notification settings - Fork 41
Modern Panoptes Install for Devs
Amy Rebecca edited this page Apr 21, 2016
·
11 revisions
It was quite difficult to get Panoptes working under El Capitan
- Clone the repository
$ git clone [email protected]:zooniverse/Panoptes.git
- Set up
rbenv
for ruby versioning - Install rbenv
$ brew install rbenv
- Add rbenv to your
.bash_profile
by inserting the lineeval "$(rbenv init -)"
- Use rbenv to install Ruby 2.3
$ rbenv install 2.3.0
- Update rbenv versions info
$ rbenv rehash
- Restart your terminal
- Tell rbenv to use rails 2.3 for panoptes by running
$ echo "ruby-2.3.0" > .ruby-version
- Try
$ bundle install
. It will fail while trying to compile libv8 - Get a working version of libv8 by doing the following:
- Remove existing v8 from your system
$ brew uninstall v8
- Remove existing libv8 gem
$ gem uninstall libv8
$ brew tap homebrew/version
$ brew install v8-315
$ brew link --force v8-315
$ gem install libv8 -- --with-system-v8
- (steps from https://github.com/cowboyd/therubyracer/issues/359#issuecomment-121931643 )
$ gem install therubyracer
$ bundle install
- Install
docker
$ brew cask install virtualbox
- Follow setup directions for docker here: https://docs.docker.com/engine/installation/mac/
- Start docker image
- Launch
docker Quickstart Terminal
$ docker-machine start default
$ docker-machine env
$ docker-compose build
$ docker-compose up
$ rake db:migrate
- Currently this is failing to connect :/