Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit f3e2b69a8c312a25ee1d2b45c047ae9bfec3c582 1 parent cdf1f5c
@nelstrom authored
Showing with 24 additions and 3 deletions.
  1. +24 −3
@@ -76,10 +76,31 @@ Run:
git push heroku master
heroku rake db:seed
+Notes on getting the sinatra application running
+* rubygems 1.3.6 or newer
+* bundler
+* postgres
+Troubles with postgres:
+ ~/code/nested-list-demo: ) createdb music_catalogue
+ createdb: could not connect to database postgres: FATAL: role "demo" does not exist
+ ~/code/nested-list-demo: ) postgres
+ You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
+Nevermind. Lets just switch to using sqlite instead! Change:
+ DataMapper.setup(:default, (ENV["DATABASE_URL"] || 'postgres://localhost/music_catalogue'))
+ DataMapper.setup(:default, (ENV["DATABASE_URL"] || "sqlite3:///#{File.expand_path(File.dirname(__FILE__))}/#{Sinatra::Base.environment}.db"))
-* clicking a leaf node should scroll to show a fresh page
-* update the text in the 'Back' button to show parent title (not 'Groceries')
Please sign in to comment.
Something went wrong with that request. Please try again.