Support #482
Updated by Daniel Curtis over 9 years ago
This guide assumes you have an Ubuntu system setup and available to go. h2. Install Prerequisites * From the command line: <pre> sudo apt-get update sudo apt-get -y install git libxslt-dev libxml2-dev build-essential bison openssl zlib1g libxslt1.1 libssl-dev libxslt1-dev libxml2 libffi-dev libxslt-dev libpq-dev autoconf libc6-dev libreadline6-dev zlib1g-dev libtool libsqlite3-dev libcurl3 libmagickcore-dev ruby-build libmagickwand-dev imagemagick bundler </pre> h2. Install Rbenv/Ruby * From the command line: <pre> cd git clone git://github.com/sstephenson/rbenv.git .rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc exec $SHELL git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc exec $SHELL rbenv install 2.0.0-p481 rbenv global 2.0.0-p481 ruby -v </pre> h2. Install Ruby on Rails * From the command line: <pre> gem install bundler --no-ri --no-rdoc rbenv rehash gem install rails -v 4.0.9 </pre> h2. Install Scumblr Application Dependencies * From the command line: <pre> sudo apt-get install redis-server gem install sidekiq rbenv rehash </pre> h2. Scripted Sketchy Install The scripted setup is tailored for Ubuntu only * First clone Sketchy: <pre> git clone https://github.com/Netflix/sketchy.git </pre> * Run setup Script: <pre> cd sketchy/ bash ubuntu_install.sh </pre> h2. Setup Application * From the command line: <pre> git clone https://github.com/Netflix/Scumblr.git cd Scumblr bundle install rake db:create rake db:schema:load </pre> h2. Create an Admin User * From the command line from the Scumblr root folder: <pre> cd ~/Scumblr ../.rbenv/versions/2.0.0-p481/bin/rails c </pre> * In the console: <pre> user = User.new user.email = "<Valid email address>" user.password = "<Password>" user.password_confirmation = "<Password>" user.admin = true user.save </pre> h2. Run Scumblr * From the command line from the Scumblr root folder: <pre> redis-server & ../.rbenv/shims/bundle exec sidekiq -l log/sidekiq.log & ../.rbenv/shims/bundle exec rails s & </pre> Now connect to your server with a web browser on port 3000 h2. Resources * https://github.com/Netflix/Scumblr/wiki