From 6e8a27f50fa961a1e206d01ed2a7f08299db3373 Mon Sep 17 00:00:00 2001 From: Christian Mueller Date: Tue, 12 Jun 2012 18:52:08 +0200 Subject: [PATCH] bugfix: use heroku-db in non-dev-mode! --- messages | 2 +- src/NoteHub/storage.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/messages b/messages index e2d86e9..dac83cd 100644 --- a/messages +++ b/messages @@ -6,7 +6,7 @@ column-why = Why? column-why-long = Not every person, who occasionally wants to express some thoughts, needs a blog. Blogs are __tedious__ for writers and for readers. Most people are not interested in thoughts of other random people. Moreover, nowadays everything rotates around social networks and not individual blogs. It makes much more sense to publish something somewhere and to share the link with the audience on the community or social network of your choice, than to maintain a blog trying to keep your readers interested. __NoteHub__ should be the place, where you can publish your thoughts without hassle. column-how = How to Use? -column-how-long = First [create](/new) a new page using the [Markdown](http://daringfireball.net/projects/markdown/) syntax. Besides just sharing the link, you can view some rudimentary statistics by appending `/stats` to the note url:
notehub.org/.../title/stats
If you want to export a note in the original Markdown format, append `/export`:
notehub.org/.../title/export
You also can invert the color scheme by appending `?theme=dark` to the note url:
notehub.org/.../title?theme=dark
+column-how-long = First [create](/new) a new page using the [Markdown](http://daringfireball.net/projects/markdown/) syntax. Besides just sharing the link, you can view some rudimentary statistics by appending `/stats` to the note url:
notehub.org/.../title/stats
If you want to export a note in the original Markdown format, append `/export` to its url:
notehub.org/.../title/export
You also can invert the color scheme by appending `?theme=dark` to the note url:
notehub.org/.../title?theme=dark
column-geeks = For Geeks! column-geeks-long = NoteHub was an one-app-one-language experiment and is implemented entirely in [Clojure](http://clojure.org) and ClojureScript. The [source code](https://github.com/chmllr/NoteHub) can be found on GitHub. Look at the code to find some undocumented NoteHub features (or bugs) and — feel free to contribute! If you are interested in more detailed code overview, read [this](http://notehub.org) note. NoteHub's design is kept intentionally extremelly simple and minimalistic, and should stay so. NoteHub's persistence layer bases on the key-value store [redis](http://redis.io). Currently, NoteHub is hosted for free on [Heroku](http://heroku.com). Send your feedback and comments directly to [@chmllr](http://twitter.com/chmllr) or open an [issue](https://github.com/chmllr/NoteHub/issues) on GitHub. diff --git a/src/NoteHub/storage.clj b/src/NoteHub/storage.clj index 4aa29d7..b4b0aca 100644 --- a/src/NoteHub/storage.clj +++ b/src/NoteHub/storage.clj @@ -6,7 +6,7 @@ ; Initialize the data base (def db (redis/init - (when (dev-mode?) + (when-not (dev-mode?) {:url (get-setting :db-url)}))) ; DB hierarchy levels