Project

General

Profile

Support #482

Installing Scumblr on Ubuntu 14.04

Added by Daniel Curtis over 9 years ago. Updated about 6 years ago.

Status:
Suspended
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
11/22/2014
Due date:
% Done:

0%

Estimated time:
2.00 h

Description

This guide assumes you have an Ubuntu system setup and available to go.

Install Prerequisites

  • From the command line:
    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
    

Install Rbenv/Ruby

  • From the command line:
    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
    

Install Ruby on Rails

  • From the command line:
    gem install bundler --no-ri --no-rdoc
    rbenv rehash
    gem install rails -v 4.0.9
    

Install Scumblr Application Dependencies

  • From the command line:
    sudo apt-get install redis-server
    gem install sidekiq
    rbenv rehash
    

Scripted Sketchy Install

The scripted setup is tailored for Ubuntu only

  • First clone Sketchy:
    git clone https://github.com/Netflix/sketchy.git
    
  • Run setup Script:
    cd sketchy/
    bash ubuntu_install.sh
    

Setup Application

  • From the command line:
    git clone https://github.com/Netflix/Scumblr.git
    cd Scumblr
    bundle install
    rake db:create
    rake db:schema:load
    

Create an Admin User

  • From the command line from the Scumblr root folder:
    cd ~/Scumblr
    ../.rbenv/versions/2.0.0-p481/bin/rails c
    
  • In the console:
    user = User.new
    user.email = "<Valid email address>" 
    user.password = "<Password>" 
    user.password_confirmation = "<Password>" 
    user.admin = true
    user.save
    

Run Scumblr

  • From the command line from the Scumblr root folder:
    redis-server &
    ../.rbenv/shims/bundle exec sidekiq -l log/sidekiq.log &
    ../.rbenv/shims/bundle exec rails s &
    

Now connect to your server with a web browser on port 3000

Resources

#1

Updated by Daniel Curtis over 9 years ago

  • Description updated (diff)
#2

Updated by Daniel Curtis about 6 years ago

  • Status changed from New to Suspended

Also available in: Atom PDF