summaryrefslogtreecommitdiff
path: root/README.md
blob: 36b9f954397e3a8127d2f6060743c9cbb684054e (plain)
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
## Environment Setup

Install RVM

    curl -L https://get.rvm.io | bash -s stable --ruby

Install ruby-2.0.0-p247

    rvm install ruby-2.0.0-p247

Create gemset (should happen automatically)

    rvm gemset create parley

Install required gems

    bundle install

Install/Start Postgres

    brew install postgres
    initdb /usr/local/var/postgres

Configure Postgres (uncomment and change unix_socket_directory = '/var/pgsql_socket')

    subl /usr/local/var/postgres/postgresql.conf
    pg-start

Setup database (set password to postgres)

    cp config/example.database.yml config/database.yml
    createuser parley_app --superuser --pwprompt --
    rake db:create:all
    rake db:migrate

Start server

    rails s

Start background job

    foreman start

Setup server ssh key

    cat ~/.ssh/id_rsa.pub | ssh demo@198.199.101.128 'cat >> ~/.ssh/authorized_keys'