Installing RhoSync on MacOS or Linux
From Rhomobile
This section describes how to pull down RhoSync from github and get it running on a server. RhoSync is a standard Ruby on Rails application like any other. It requires these gems and Rails 2.2.2. If you don't have at least version 2.2.2 of Ruby on Rails installed, go to the Ruby on Rails site for instructions on installing Rails.
First create a clone of the RhoSync project. You might need to install git if you don't have it.
sudo gem install rspec-rails rake
Download RhoSync by doing a git clone:
git clone git://github.com/rhomobile/rhosync.git
Install your database driver of choice
sudo apt-get install sqlite3 libsqlite3-dev (add this line for Ubuntu or Debian, not for Mac OSX) sudo gem install sqlite3-ruby
or
sudo apt-get install libmysqlclient-dev (add this line for Ubuntu or Debian, not for Mac OSX) sudo gem install mysql
Go to the directory you put RhoSync into. For example
cd rhosync
If you don't have the file "log/development.log" then go ahead and create the file:
mkdir -p log; touch log/development.log; sudo chmod 0666 log/development.log
Copy config/database.yml.example to config/database.yml. Configure config/database.yml to tell Rails how to connect to your database:
<edit>config/database.yml
Install required gems
sudo apt-get install libxml2 libxml2-dev ruby1.8-dev (add this line for Ubuntu or Debian, not for Mac OSX) sudo rake gems:install
Then run the db:bootstrap rake task provided, creating the database and associated tables that RhoSync needs. It will also load the source adapters that we ship with.
rake db:bootstrap
Then use your Rails server of choice to run the application. If you don't have a Rails server, you can install mongrel with:
sudo gem install mongrel
