Permalink
Browse files

Add info on configuration and config file. Also updated the

documentation
  • Loading branch information...
1 parent d2a3a10 commit 00c9c995895ef9bfa1e99cc9c0b5b53b9853b229 @GordonDiggs GordonDiggs committed with Jul 3, 2011
Showing with 16 additions and 4 deletions.
  1. +9 −4 README.markdown
  2. +7 −0 config.ru
View
@@ -16,16 +16,21 @@ With ruby, rubygems, the bundler gem (''gem install bundler'') and git, you can
$ git clone git://github.com/sunny/so-nice.git
$ cd so-nice
- $ bundle
+ $ bundle install
+
+The configuration options are at the top of the `config.ru` file (all settings are enabled by default):
+
+* `ENV['SONICE_CONTROLS']` enables/disables on screen controls
+* `ENV['SONICE_VOTING']` enables/disables voting
Launch it with:
- $ ./sonice.rb
+ $ thin start -p 4567 -R config.ru
-Then visit `http://localhost:4567`
+Then visit [http://localhost:4567](http://localhost:4567)
Licence
-------
-[WTFPL](http://sam.zoy.org/wtfpl/)
+[WTFPL](http://sam.zoy.org/wtfpl/)
View
@@ -0,0 +1,7 @@
+### Config Settings
+# ENV['SONICE_CONTROLS'] = '0' # Disable controls
+# ENV['SONICE_VOTING'] = '0' # Disable voting
+
+require File.join(File.dirname(__FILE__), 'sonice.rb')
+run Sinatra::Application
+

0 comments on commit 00c9c99

Please sign in to comment.