Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add some notes on getting the Sinatra app up and running.

  • Loading branch information...
commit f3e2b69a8c312a25ee1d2b45c047ae9bfec3c582 1 parent cdf1f5c
Drew Neil authored

Showing 1 changed file with 24 additions and 3 deletions. Show diff stats Hide diff stats

  1. +24 3 README.md
27 README.md
Source Rendered
@@ -76,10 +76,31 @@ Run:
76 76 git push heroku master
77 77 heroku rake db:seed
78 78
79   -TODO:
  79 +Notes on getting the sinatra application running
  80 +------------------------------------------------
  81 +
  82 +Requirements:
  83 +
  84 +* rubygems 1.3.6 or newer
  85 +* bundler
  86 +* postgres
  87 +
  88 +Troubles with postgres:
  89 +
  90 + ~/code/nested-list-demo: ) createdb music_catalogue
  91 + createdb: could not connect to database postgres: FATAL: role "demo" does not exist
  92 + ~/code/nested-list-demo: ) postgres
  93 + You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
  94 +
  95 +Nevermind. Lets just switch to using sqlite instead! Change:
  96 +
  97 + DataMapper.setup(:default, (ENV["DATABASE_URL"] || 'postgres://localhost/music_catalogue'))
  98 +
  99 +to
  100 + DataMapper.setup(:default, (ENV["DATABASE_URL"] || "sqlite3:///#{File.expand_path(File.dirname(__FILE__))}/#{Sinatra::Base.environment}.db"))
  101 +
  102 +
80 103
81   -* clicking a leaf node should scroll to show a fresh page
82   -* update the text in the 'Back' button to show parent title (not 'Groceries')
83 104
84 105 [eg]: http://dev.sencha.com/deploy/touch/examples/nestedlist/
85 106 [Sinatra]: http://www.sinatrarb.com/

0 comments on commit f3e2b69

Please sign in to comment.
Something went wrong with that request. Please try again.