From 1b30d6e9fadc6ba62847e0faef3c8bb2dae808eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Wn=C4=99trzak?= Date: Thu, 5 May 2011 11:23:53 +0200 Subject: [PATCH] moved warning above testing, changed redis test config to run on 0.2.1 --- README.rdoc | 20 +++++++++++--------- config/redis-test.conf | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.rdoc b/README.rdoc index deaa287..6a2fa2a 100644 --- a/README.rdoc +++ b/README.rdoc @@ -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 @@ -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/ @@ -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. diff --git a/config/redis-test.conf b/config/redis-test.conf index bfc3f62..76f43f7 100644 --- a/config/redis-test.conf +++ b/config/redis-test.conf @@ -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