#!/usr/bin/ruby require 'rubygems' require 'camping/fastcgi' # Set this to the absolute base dir you've installed linkr in LINKR_BASE_DIR = "/var/www/linkr" $:.unshift LINKR_BASE_DIR # If you're using SQLite leave this line as is, should work Camping::Models::Base.establish_connection :adapter => 'sqlite3', :database => "#{LINKR_BASE_DIR}/linkr.db" # If you'd ratter you MySql, uncomment there lines are remove the previous ones # Camping::Models::Base.establish_connection :adapter => 'mysql', # :database => 'linkr', # :username => 'root', # :password => 'yourpassword' Camping::FastCGI.serve "#{LINKR_BASE_DIR}/linkr.rb"