Getting Started

Singleshot is developed against Rails 2.3.2. Make sure to have Rails 2.3.2 installed:

$ gem update --system
$ gem install rails -v 2.3.2

To get the latest copy:

$ git clone git://github.com/intalio/singleshot.git

You will need MySQL. The file config/databases.yml contains the connection configurations for the development, test and production environment. You can either setup MySQL databases to match this configuration, or change it to suit your database setup. Remember that we’re using three different databases for development, testing and production — if in doubt, you’re probably running against the production database. Also, you need to give Singleshot sufficient priviledges to load a new database schema.

To setup you development environment, specifically installing all the necessary dependencies and setting up the development and test databases, run the script script/setup:

$ ruby script/setup

This will also create a default account using your user name and the password ‘secret’

To get started:

$ ruby script/server

Point your browser to http://localhost:3000 and login with your user name and password.

If you’re using Phusion Passenger you can setup an Apache virtual host like this:

<VirtualHost *:80>
  ServerName singleshot.local
  DocumentRoot "/Users/assaf/work/singleshot/public"
  RailsEnv development
  <directory "/Users/assaf/work/singleshot/public">
    Order allow,deny
    Allow from all
  </directory>
</VirtualHost>

Then just add singleshot.local to your /etc/hosts and you can use this handy URL.