Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Installation

Steven Hildreth edited this page Jan 31, 2016 · 22 revisions

These are the steps I did to get my roadie deployed from GitHub to my Ubuntu 14.04 server.

Steps overview

  • Install MongoDB (out of scope for this Wiki)
  • Setup new Folder and VirtualEnv for application
  • Fetch from GitHub and then use pip to install requirements
  • Modify the settings.json to point to your MongoDB and set any options
  • Start application and test

Install PIP for Python 3

sudo apt-get update
sudo apt-get install python3-pip python3.x python3.x-dev virtualdev

Make a folder to hold the application

mkdir /opt/roadie
cd /opt/roadie

Create a virtualenv and then activate it

virtualenv --no-site-packages --distribute -p /usr/bin/python3.x venv
source venv/bin/activate

Install latest MusicBrainz from github into virtualenv

git clone git://github.com/alastair/python-musicbrainzngs.git
cd python-musicbrainzngs
python setup.py install

Install some libraries necessary to compile

sudo apt-get install libffi-dev libjpeg62 libjpeg62-dev libpng12-dev

Install some tools necessary for converting

sudo apt-get install shntool cuetools libav-tools

Get roadie code

git clone https://github.com/sphildreth/roadie.git
cd roadie
pip install -r requirements.txt
modify the setttings.json file for your environment

Start up roadie

python application.py

Hit the instance

http://server:5000

If you get some error about Bcrypt

pip install --upgrade pip
pip uninstall flask-bcrypt
pip uninstall bcrypt
pip install flask-bcrypt --ignore-installed --no-cache-dir