Skip to content

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

  1. Clone the repository $ git clone [email protected]:zooniverse/Panoptes.git
  2. Set up rbenv for ruby versioning
  3. Install rbenv $ brew install rbenv
  4. Add rbenv to your .bash_profile by inserting the line eval "$(rbenv init -)"
  5. Use rbenv to install Ruby 2.3 $ rbenv install 2.3.0
  6. Update rbenv versions info $ rbenv rehash
  7. Restart your terminal
  8. Tell rbenv to use rails 2.3 for panoptes by running $ echo "ruby-2.3.0" > .ruby-version
  9. Try $ bundle install. It will fail while trying to compile libv8
  10. Get a working version of libv8 by doing the following:
  11. Remove existing v8 from your system $ brew uninstall v8
  12. Remove existing libv8 gem $ gem uninstall libv8
  13. $ brew tap homebrew/version
  14. $ brew install v8-315
  15. $ brew link --force v8-315
  16. $ gem install libv8 -- --with-system-v8
  17. (steps from https://github.com/cowboyd/therubyracer/issues/359#issuecomment-121931643 )
  18. $ gem install therubyracer
  19. $ bundle install
  20. Install docker
  21. $ brew cask install virtualbox
  22. Follow setup directions for docker here: https://docs.docker.com/engine/installation/mac/
  23. Start docker image
  24. Launch docker Quickstart Terminal
  25. $ docker-machine start default
  26. $ docker-machine env
  27. $ docker-compose build
  28. $ docker-compose up
  29. $ rake db:migrate
  30. Currently this is failing to connect :/
Clone this wiki locally