cloudcms-server 4.0.0-beta.7 → 4.0.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.last_command ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "command": {
3
+ "group": "server",
4
+ "name": "start"
5
+ },
6
+ "arguments": {}
7
+ }
@@ -63,6 +63,7 @@ module.exports.start = function(configuration, callback)
63
63
  var MessageConsumer = function MessageConsumer() { };
64
64
  MessageConsumer.prototype.init = function init(done) {
65
65
  console.log("STOMP client initializing to host: " + host + ", port: " + port);
66
+ var self = this;
66
67
  var stompClient = new Stomp({
67
68
  "host": host,
68
69
  "port": port,
@@ -85,6 +86,9 @@ module.exports.start = function(configuration, callback)
85
86
  });
86
87
 
87
88
  done();
89
+ }, function(err) {
90
+ console.error("STOMP Error: " + err);
91
+ done(err);
88
92
  });
89
93
  };
90
94
  holder.consumer = new MessageConsumer();
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "cloudcms-server",
8
8
  "description": "Cloud CMS Application Server Module",
9
- "version": "4.0.0-beta.7",
9
+ "version": "4.0.0-beta.9",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git://github.com/gitana/cloudcms-server.git"
@@ -42,7 +42,7 @@
42
42
  "express-useragent": "^1.0.15",
43
43
  "extend-with-super": "^2.0.0",
44
44
  "fast-proxy": "^2.2.0",
45
- "gitana": "^1.0.324",
45
+ "gitana": "^1.0.325",
46
46
  "handlebars": "^4.7.6",
47
47
  "hbs": "^4.1.1",
48
48
  "helmet": "^4.6.0",
package/server/index.js CHANGED
@@ -547,7 +547,6 @@ var runFunctions = function (functions, args, callback) {
547
547
  * @param callback optional callback function
548
548
  */
549
549
  exports.start = function(overrides, callback) {
550
-
551
550
  setTimeout(function() {
552
551
  _start(overrides, function(err) {
553
552
  if (callback) {
@@ -780,6 +779,10 @@ var startServer = function(config, startServerFinishedFn)
780
779
 
781
780
  // global service starts
782
781
  main.init(app, function (err) {
782
+
783
+ if (err) {
784
+ return startServerFinishedFn(err);
785
+ }
783
786
 
784
787
  app.enable('strict routing');
785
788