Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #22 from kriszyp/master

Latest updates
  • Loading branch information...
commit 5c0c890024fe0048784a4af8497f67f94732e4f1 2 parents 0f13e7e + d1fb2af
@kriszyp kriszyp authored
View
2  app.js
@@ -49,7 +49,7 @@ var publicModel = {
Page: pageFacets.PublicFacet,
PageChange: pageChangeFacets.PublicFacet,
User: User,
- File: Restrictive(File),
+ File: File,
Class: Restrictive(ClassModel)
};
View
6 local.json
@@ -1,8 +1,8 @@
{
"//": "For production, you would normally want the number of processes to match the number of cores, but for debugging, using 1 is much easier:",
"processes": 1,
- "//": "This is the HTTP port to listen on:",
- "port": 8080,
+ "//": "This is the HTTP port to listen on (default to the PORT environment variable or 80)",
+ "port": null,
"//": "Indicates whether the console should run",
"repl": true,
"//": "Indicates a TCP/port connection for the console (omit to disable)",
@@ -27,4 +27,4 @@
},
"//": "Default location of data",
"dataFolder": "data"
-}
+}
View
4 model/page-mongo.js
@@ -2,9 +2,9 @@
* This provides the definition of the mongo store if used
*/
-var MongoDB = require("perstore/store/mongodb").MongoDB,
+var MongoDB = require("mongodb-store").MongoDB,
// url takes this form - mongodb://<user>:<password>@<mongo-server>:<port>/<database>
- url = process.env.MONGO_URL;
+ url = "mongodb://localhost";//process.env.MONGO_URL;
exports.pageStore = MongoDB({
collection: "Page",
View
4 model/page-sql.js
@@ -2,9 +2,9 @@
* This provides the definition of the SQL store if used
*/
-var SQLStore = require("perstore/store/sql").SQLStore;
+var SQLStore = require("mysql-store").SQLStore;
//CREATE TABLE Page (id VARCHAR(100), status VARCHAR(10), content VARCHAR(100000), createdBy VARCHAR(20), lastModifiedBy VARCHAR(20), PRIMARY KEY(id))
exports.pageStore = SQLStore({
- table: "Page",
+ table: "Test",
idColumn: "id"
});
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "persevere-example-wiki",
"author": "",
- "version": "0.0.4",
+ "version": "0.2.5",
"contributors": [],
"mappings":{
"perstore": "http://github.com/kriszyp/perstore/zipball/v0.2.4!/",
Please sign in to comment.
Something went wrong with that request. Please try again.