pkg update
pkg install bash automake autoconf libtool bison readline libyaml curl git apache22 gcc-4.4.7,1 gmake
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm install 2.0.0
rvm use 2.0.0 –default
gem install rails bundler passenger
passenger-install-apache2-module
cd /usr/local/www/
git clone github.com/rudicba/tobackup.git
chown -R www:www tobackup/
comment “gem ‘therubyracer’, platforms: :ruby” on Gemfile
add “gem ‘therubyracer-freebsd’, platforms: :ruby”
copy config/database.yml.example to config/database.yml
copy config/config.yml.example to config/config.yml
sudo apt-get install ruby ruby-dev build-essential libsqlite3-dev
vi ~/.gemrc
install: –no-rdoc –no-ri
update: –no-rdoc –no-ri
sudo gem install rails
cd /path/to/install
git clone github.com/rudicba/tobackup.git
cd tobackup
bundle install
cp config/database.yml.example config/database.yml
cp config/config.yml.example config/config.yml
rake db:migrate
rake secret
vi config/initializers/secret_token.rb
Tobackup::Application.config.secret_token = ‘generatesecrettoken.……’