The conference site for Smidig 20xx
Ruby CSS JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Smidig 2010 Conference site

Setting up your environment

OSX / Linux


Install the following tools or the equivalent.

Configure line endings

Because Windows has its own line endings (CRLF \r\n) as opposed to Unix / Linux (LF), it is advised to align these line endings on commits, so that all line endings in GitHub are LF only.

Windows users should git config --global core.autocrlf false and edit files using Unix-style line endings.

Setting up SSH certificates

Download and install Putty from
Use PuTTYgen to generate a new keypair (you can usually leave the keyphrase empty)
Save the private key to you home directory
Copy the text of the public key into HOME/.ssh/
Register your public key with Github at (copy from the text field in PuTTYgen)
Start Pageant
Right-click on the Pageant icon in the System Tray and Add Key

You need to start Pageant before using git to push to Github or Heroku. You may want to add this as a Startup file.

Getting started

You need to be added as a collaborator on the project. Talk to Ole-Morten.
Check out the code: git clone
$ gem update --system
$ gem install bundler
$ gem install rails
# In application directory
$ bundle install
ON WINDOWS: Also grab sqlite DLL from and stuff it in your path
ON UBUNTU: sudo apt-get install libsqlite3-dev
$ rake db:migrate
$ rake test
# Start the server
$ rails server
Go to http://localhost:3000

Checking in

You need to be a collaborator (at of the conference site, otherwise commit to your own fork, and make a pull request.

Deploying to Heroku

Login as and add your user as a collaborator (at


# Install the heroku gem
$ gem install heroku
# Install your SSH keys (Uses ~/.ssh/
$ heroku keys:add
$ cd smidig-conference
$ git remote add production
$ git remote add staging

Fool around:

$ gem install taps
# remote console
$ heroku console --app stagingsmidig
$ heroku console --app participate
# Pull data from the heroku app to your local db
$ heroku db:pull --app [stagingsmidig|participate]

Update (push):

$ git push [production|staging|master]
#DB changes? remember to migrate the server
$ heroku rake db:migrate --app [stagingsmidig|participate]

Heroku app-owner privileges:

For å switche mellom dine heroku-identiteter (som 'oma', eller 'smidig') kan du følge dennne
for å kunne bruke det på kommandolinjen.
Det meste (unntatt app create) kan styres ved å logge inn som app-owner på

Heroku SendGrid: # For å sjekke user/pass: $ heroku config --long --app participate

Bundle without development or test gems. Set this once pr apps $ heroku config:add BUNDLE_WITHOUT="development test"

GIT (github)

Create a github user and add your public SSH-key (usually ~/.ssh/ to the github user.

To commit directly to the repository, ask at for collaborator status.

$ git clone<username>/smidig-conference.git
$ cd smidig-conference
$ mate README (or another editor, make a change)
$ git status (shows what is changed, i.e. README should now be marked red (if you have colors))
$ git add README (adds README file which should be changed now)
git status (Will now show README as green - meaning it will be committed)
git commit -am "My first commit, added some text to README" (Commit to your local repository)
git push (Push local changes to the central (origin) repository to<username>/smidig-conference)

(To verify the format for this file, use