Skip to content

Commit

Permalink
Update to use postgresql.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Feb 5, 2011
1 parent b83a1f0 commit a533385
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions Gemfile.lock
Expand Up @@ -53,8 +53,6 @@ GEM
dm-core (~> 1.0.2) dm-core (~> 1.0.2)
do_postgres (0.10.2) do_postgres (0.10.2)
data_objects (= 0.10.2) data_objects (= 0.10.2)
do_sqlite3 (0.10.2)
data_objects (= 0.10.2)
extlib (0.9.15) extlib (0.9.15)
fastercsv (1.5.4) fastercsv (1.5.4)
json_pure (1.5.1) json_pure (1.5.1)
Expand Down Expand Up @@ -95,7 +93,7 @@ DEPENDENCIES
dm-postgres-adapter dm-postgres-adapter
dm-serializer (= 1.0.2) dm-serializer (= 1.0.2)
dm-validations (= 1.0.2) dm-validations (= 1.0.2)
do_sqlite3 do_postgres
rack (= 1.2.0) rack (= 1.2.0)
rack-test rack-test
rake rake
Expand Down
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -2,17 +2,17 @@ A demonstration of how the Nested List View in Sencha Touch.


Also, see the [Sencha Touch Nested List example][eg]. 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 ## Deploying to Heroku ##
heroku config:add SHARED_DATABASE_URL=sqlite://local.db


Run: Run:


git push heroku master git push heroku master
heroku db:push sqlite://development.db heroku db:push


TODO: TODO:


Expand Down
2 changes: 1 addition & 1 deletion environment.rb
Expand Up @@ -23,7 +23,7 @@
$LOAD_PATH.unshift("#{File.dirname(__FILE__)}/lib") $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/lib")
Dir.glob("#{File.dirname(__FILE__)}/lib/*.rb") { |lib| require File.basename(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 end


Expand Down

0 comments on commit a533385

Please sign in to comment.