Template:Installation/Common

From diaspora* project wiki
< Template:Installation
Revision as of 16:42, 9 December 2013 by Flaburgan (talk | contribs) (Add indication to modify database.yml and diaspora.yml)

Get the source

It's time to download Diaspora! As your diaspora user run:

cd ~
git clone  git://github.com/diaspora/diaspora.git
cd diaspora

Don't miss the cd diaspora, all coming commands expect to be run from that directory!

Configuration

Copy files

cp config/database.yml.example config/database.yml
cp config/diaspora.yml.example config/diaspora.yml



Edit files

Edit database.yml to set the username and password to use to connect to your database. Edit diaspora.yml to choose the setting you want. You should at least uncomment the certificate_authorities: '/etc/ssl/certs/ca-certificates.crt' line, and choose between production and development for rails_environment in the server section.

Bundle

It's time to install the Ruby libraries required by Diaspora:

 bundle install

This takes quite a while. You should get a green success message when it's finished, if that's no the case you should seek for help on the mailing list or the IRC channel.

Running the manual gem install command shown in the error message can sometimes show a clearer error message if the bundle command fails.

Database setup

Double check your config/database.yml looks right and run:

 bundle exec rake db:create db:schema:load


Start Diaspora

It's time to start Diaspora:

./script/server


Further reading