Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add info on configuration and config file. Also updated the

documentation
  • Loading branch information...
commit 00c9c995895ef9bfa1e99cc9c0b5b53b9853b229 1 parent d2a3a10
@GordonDiggs GordonDiggs authored committed
Showing with 16 additions and 4 deletions.
  1. +9 −4 README.markdown
  2. +7 −0 config.ru
View
13 README.markdown
@@ -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
7 config.ru
@@ -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
+
Please sign in to comment.
Something went wrong with that request. Please try again.