geddy

Deploy Geddy to Heroku

谁都会走 提交于 2020-01-15 06:24:14
问题 I'm trying to deploy a simple Geddyjs (node.js) app to Heroku. When I make a push a recive that error: git push heroku master Heroku receiving push Heroku push rejected, no Cedar-supported app detected What I have to do to that heroku detect the nodejs app? 回答1: couple of things did you do this for cedar you need to explicitly say this (I am sure you have done this but here for completeness) heroku create --stack cedar ensure that your package.json is at the root heroku have a good article on

GeddyJS & socket.io: catching and emitting events from server side

我的未来我决定 提交于 2020-01-05 07:44:11
问题 i would like to use socket.io along with Geddy. I just followed the instructions in the below link: https://github.com/mde/geddy/wiki/Getting-started-with-Geddy,-Socket.io,-and-Authentication Suggest me how to catch the 'connection' event on specific model in server-side. Also find below the glimpse of what i have did so far with this model... geddy scaffold -rt LiveUpdate stat:string category:string And found the following auto-generated scripts related to socket.io in "show.html.ejs" of

Geddy JS overwrites custom id

妖精的绣舞 提交于 2019-12-23 03:15:32
问题 I am running an app with Geddy JS (v 0.6.18) with a Mongo DB - Before saving models I am setting a custom id property. Nevertheless, Geddy JS (or Mongo DB?) seems to overwrite this custom id property with a String looking like: EAF9AAD8-3A5D-462B-8733-376AB17ECBEC Instead of my custom 10-length string. This behaviuor did not occur before updating to the lastest version. Can anyone explain me, what's happending here and how I am able to turn this off? 来源: https://stackoverflow.com/questions

No breakpoints are hit with Geddy

浪子不回头ぞ 提交于 2019-12-22 05:25:39
问题 Im evaluating the Geddy MVC framework for node.js and I am seeing a strange issue - none of my breakpoints get hit when debugging. I am using WebStorm to launch node.js in debug mode. I dont know how to make Geddy start in debug mode using the CLI command so I have a bootstrapper file that I use that looks like this: console.log("Starting server...") var geddy = require("geddy/bin/cli") console.log("Server started.") I set a breakpoint on all three lines and only the last console.log gets hit

Display only the desired parameters

你说的曾经没有我的故事 提交于 2019-12-20 06:26:14
问题 I created an app following this tutorial (without scaffolding). After I create an item I can click on it and it shows me a big list of parameters. Like here: http://s15.postimage.org/j6at9koiz/parameters.png . The code which does that is: <% if (todos && todos.length) { %> <% for (var i in todos) { %> <div class="row todo-item"> <div class="span8"> <h3><%- linkTo(todos[i].title, todoPath(todos[i].id)) %></h3> </div> <div class="span4"><h3><i class="icon-list-alt"></i><%= todos[i].status; %><

Add a value to the option

青春壹個敷衍的年華 提交于 2019-12-12 02:07:08
问题 I am trying to create a select element using EJS (embedded javascript) in Geddy framework. What I want to do is have something like (just an example): <select> <option value="int"> Integer </option> <option value="float"> Single precision decimal point </option> </select> I don't find any examples... I know that for creating a select like <select> <option value="X"> X </option> <option value="Y"> Y </option> </select> I have to write <%- contentTag('select', ['X', 'Y']} %> But how to obtain

TypeError: Cannot read property 'properties' of undefined

耗尽温柔 提交于 2019-12-12 00:57:12
问题 I have a Node.js/Geddy app which was working untill a few minutes ago. Now, when I try to run it, I get the following error: I have many models, but for one of them, I get this error. The error is shown because in the file whose path is displayed in the console the following is undefined: reg[ownedModelName] where reg = model.descriptionRegistry and ownedModelName is given by if (assnKey == 'belongsTo') { ownerModelName = modelName; ownedModelName = self.name; idKey = modelName; } else {

NodeJS - Framework for stateless sessions?

て烟熏妆下的殇ゞ 提交于 2019-12-07 16:07:09
问题 Is there a framework to support fully client-managed sessions? In other words, instead of storing just the signed pid in the cookie (as Express does), store all context... so that you can manage state across clusters without the requirement to persist. 回答1: There is express middleware which supports this: https://github.com/expressjs/cookie-session cookieSession() Provides cookie-based sessions, and populates req.session. This middleware takes the following options: name - cookie name

Geddy JS overwrites custom id

拥有回忆 提交于 2019-12-06 15:57:57
I am running an app with Geddy JS (v 0.6.18) with a Mongo DB - Before saving models I am setting a custom id property. Nevertheless, Geddy JS (or Mongo DB?) seems to overwrite this custom id property with a String looking like: EAF9AAD8-3A5D-462B-8733-376AB17ECBEC Instead of my custom 10-length string. This behaviuor did not occur before updating to the lastest version. Can anyone explain me, what's happending here and how I am able to turn this off? 来源: https://stackoverflow.com/questions/15064641/geddy-js-overwrites-custom-id

NodeJS - Framework for stateless sessions?

白昼怎懂夜的黑 提交于 2019-12-05 21:15:12
Is there a framework to support fully client-managed sessions? In other words, instead of storing just the signed pid in the cookie (as Express does), store all context... so that you can manage state across clusters without the requirement to persist. Robert Christian There is express middleware which supports this: https://github.com/expressjs/cookie-session cookieSession() Provides cookie-based sessions, and populates req.session. This middleware takes the following options: name - cookie name defaulting to " session " keys - list of secret keys to prevent tampering secret - used as single