Skip to content

Commit

Permalink
moved warning above testing, changed redis test config to run on 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Wnętrzak committed May 5, 2011
1 parent 38e4fdb commit 1b30d6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ This is the first version, heavy alpha.

2. Run redis (download from http://redis.io/download) - tested on 2.0 and 2.2 stable releases, optionally tweak config/redis.yml

3. Run node server (download from http://nodejs.org/#download) - tested on v0.4.3
3. Run node server (download from http://nodejs.org/#download) - tested on (v0.4.3, v0.4.7)

node app-node/server.js

Tip: You can also use nvm https://github.com/creationix/nvm

You can run node as root user (sudo node ...) or with `authbind` (authbind node ...), so socket.io could bind to low port to serve xml policy file for Flash.

4. Run the application
Expand All @@ -32,6 +34,14 @@ You can run node as root user (sudo node ...) or with `authbind` (authbind node

== Running tests

=== BIG WARNING:

As with test database, make sure that you run your tests on separate Redis database, as this will flush you data before tests.

Unfortunately Redis gem uses default url for connection (redis://localhost:6379), so if you don't provide proper config (or use older gem than from master repository for Redis in case of unix socket), then instead of connecting to test database, your test environment could connect to other database and flush it all.

You have been warned!

1. Install required gems into vendor/ruby/ subdirectory (for easier maintain)

bundle install --path vendor/
Expand All @@ -48,14 +58,6 @@ You can run node as root user (sudo node ...) or with `authbind` (authbind node

rake spec

=== BIG WARNING:

As with test database, make sure that you run your tests on separate Redis database, as this will flush you data before tests.

Unfortunately Redis gem uses default url for connection (redis://localhost:6379), so if you don't provide proper config (or use older gem than from master repository for Redis in case of unix socket), then instead of connecting to test database, your test environment could connect to other database and flush it all.

You have been warned!

== Translations

Currently, the application is available in 2 languages: English and German. Default locale is set during the application boot, but is's possible to switch to different locale while application is running - just click link with locale name in the header.
Expand Down
2 changes: 1 addition & 1 deletion config/redis-test.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ port 6380
bind 127.0.0.1
loglevel verbose
logfile stdout
syslog-enabled no
# syslog-enabled no

rdbcompression yes
dbfilename db/test.rdb
Expand Down

0 comments on commit 1b30d6e

Please sign in to comment.