Skip to content
Browse files

Update to use postgresql.

  • Loading branch information...
1 parent b83a1f0 commit a5333855ca03002068647db604c7a75af5737413 @nelstrom committed
Showing with 7 additions and 9 deletions.
  1. +1 −3 Gemfile.lock
  2. +5 −5 README.md
  3. +1 −1 environment.rb
View
4 Gemfile.lock
@@ -53,8 +53,6 @@ GEM
dm-core (~> 1.0.2)
do_postgres (0.10.2)
data_objects (= 0.10.2)
- do_sqlite3 (0.10.2)
- data_objects (= 0.10.2)
extlib (0.9.15)
fastercsv (1.5.4)
json_pure (1.5.1)
@@ -95,7 +93,7 @@ DEPENDENCIES
dm-postgres-adapter
dm-serializer (= 1.0.2)
dm-validations (= 1.0.2)
- do_sqlite3
+ do_postgres
rack (= 1.2.0)
rack-test
rake
View
10 README.md
@@ -2,17 +2,17 @@ A demonstration of how the Nested List View in Sencha Touch.
Also, see the [Sencha Touch Nested List example][eg].
-## Deploying to Heroku ##
+Create the Postgres database:
-Setup to use sqlite:
+ createdb music_catalogue
+ rake db:seed
- heroku config:add DATABASE_URL=sqlite://local.db
- heroku config:add SHARED_DATABASE_URL=sqlite://local.db
+## Deploying to Heroku ##
Run:
git push heroku master
- heroku db:push sqlite://development.db
+ heroku db:push
TODO:
View
2 environment.rb
@@ -23,7 +23,7 @@
$LOAD_PATH.unshift("#{File.dirname(__FILE__)}/lib")
Dir.glob("#{File.dirname(__FILE__)}/lib/*.rb") { |lib| require File.basename(lib, '.*') }
- DataMapper.setup(:default, (ENV["DATABASE_URL"] || 'postgres://localhost/the_database_name'))
+ DataMapper.setup(:default, (ENV["DATABASE_URL"] || 'postgres://localhost/music_catalogue'))
end

0 comments on commit a533385

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