forked from bace/oscurrency
-
Notifications
You must be signed in to change notification settings - Fork 1
/
BACE_INSTALL.txt
68 lines (53 loc) · 1.73 KB
/
BACE_INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
# These are my personal steps for installing BACE's oscurrency onto a clean Ubuntu install.
# YOU SHOULD NOT RUN THIS SCRIPT, but instead step through it one line at a time,
# and only run what makes sense to you. THIS SCRIPT MAY NOT BE ACCURATE.
# - Carl
apt-get install postgresql git-core g++ curl libpq-dev libmagickcore-dev libmagickwand-dev
apt-get install rubygems
cd ~
mkdir bace
git clone git://github.com/bace/oscurrency.git
# From https://rvm.beginrescueend.com/
# download RVM:
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
# place this at end of ~/.bash_profile (ALREADY DONE FROM ABOVE STEP)
# [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
# rvm list known
rvm install 1.8.7
rvm use 1.8.7
ruby -v
# ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
# which ruby
# ~/.rvm/rubies/ruby-1.8.7-p352/bin/ruby
rvm use 1.8.7 --default
# Using ~/.rvm/gems/ruby-1.8.7-p352
gem install bundle
cd ~/bace/oscurrency
bundle install
# Postgres setup
sudo -u postgres createuser --superuser $USER
# sudo su -u postgres
# psql
# \du
# CREATE DATABASE bace;
# \q
# exit
# psql bace
# Create database.yml
cd ~/bace/oscurrency/config/
cp database.yml.heroku database.yml
# Modify this file
# Under development:
# replace "username: postgres" with "username: carl"
# remove line that starts with " port:"
cd ~/bace/oscurrency/
rake db:create
rake db:migrate
rake install
# to run, first set env vars:
source ~/vars.sh
# then start server
~/bace/oscurrency/script/server
# EOF