Skip to content
Browse files

added mongo instructions

  • Loading branch information...
yogthos committed Feb 10, 2014
1 parent 7971d3d commit bfdc1edfe576c74e4d1c4fd81ff77b76a4ee7113
@@ -1,4 +1,4 @@
(defproject luminus/lein-template "1.11.21"
(defproject luminus/lein-template "1.11.22"
:description "a template for creating Luminus applications"
:url ""
:license {:name "MIT License"
@@ -104,7 +104,9 @@

(defmethod post-process :+mongodb [_ project-file]
(add-mongo-dependencies project-file
['com.novemberain/monger "1.7.0"]))
['com.novemberain/monger "1.7.0"])
(let [docs-filename (str *name* "/resources/public/md/")]
(spit docs-filename (str (*render* "dbs/mongo_instructions.html") (slurp docs-filename)))))

(defmethod add-feature :+migrations [_]
(let [timestamp (.format
@@ -7,5 +7,5 @@ <h3>Database Configuration is Required</h3>
<li> Update the connection URL in the <code>project.clj</code> <code>:ragtime</code> settings with your database name and login.
<li> Run <code>lein ragtime migrate</code> in the root of the application to create the tables.
<li> Restart the application.
@@ -0,0 +1,9 @@
<div class="bs-callout bs-callout-danger">
<h3>MongoDB Configuration is Required</h3>
<p>Before continuing please follow the steps below to configure your MongoDB connection.</p>
<li> Ensure that MongoDB is up and running.
<li> Add the connection parameters in the <code>{{name}}.models.db</code> namespace.
<li> Restart the application.

0 comments on commit bfdc1ed

Please sign in to comment.
You can’t perform that action at this time.