Skip to content
Browse files

Add instructions for config files to README

  • Loading branch information...
1 parent 2046680 commit eba356bbb6835708d6b99d5bcc22fd76d24cf3c6 @nixme committed Feb 11, 2012
Showing with 49 additions and 0 deletions.
  1. +10 −0 README.md
  2. +39 −0 config/database.yml.sample
View
10 README.md
@@ -88,6 +88,16 @@ $ echo 'FACEBOOK_APP_ID=111111111111111' >> .env
$ echo 'FACEBOOK_APP_SECRET=abcdefabcdefabcdefabcdefabcdefab' >> .env
```
+Copy the sample connection configurations:
+
+```sh
+$ cp config/redis.yml.sample config/redis.yml
+$ cp config/database.yml.sample config/database.yml
+```
+
+Edit `config/redis.yml` and `config/database.yml` to match your local Redis and
+PostgreSQL configuration.
+
### Running the application
View
39 config/database.yml.sample
@@ -0,0 +1,39 @@
+# PostgreSQL
+#
+# Use with PostgreSQL 9.x
+
+development:
+ adapter: postgresql
+ encoding: unicode
+ database: warble
+ pool: 5
+ username: stringer
+ password: bell
+
+ # Connect on a TCP socket. Omitted by default since the client uses a domain
+ # socket that doesn't need configuration. Windows does not have domain
+ # sockets, so uncomment these lines.
+ #host: localhost
+ #port: 5432
+
+ # Schema search path. The server defaults to $user,public
+ #schema_search_path: myapp,sharedapp,public
+
+ # Minimum log levels, in increasing order:
+ # debug5, debug4, debug3, debug2, debug1,
+ # log, notice, warning, error, fatal, and panic
+ # The server defaults to notice.
+ min_messages: warning
+
+
+# Warning: The database defined as "test" will be erased and
+# re-generated from your development database when you run "rake".
+# Do not set this db to the same as development or production.
+test:
+ adapter: postgresql
+ encoding: unicode
+ database: warble
+ pool: 5
+ username: stringer
+ password: bell
+ min_messages: warning

0 comments on commit eba356b

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