CleverStack / cleverstack-cli

CLI for CleverStack
http://youtube.com/watch?v=-4ArURHExhQ
MIT License
196 stars 33 forks source link

clever setup is slow and seems to hang #38

Closed theocoria closed 9 years ago

theocoria commented 10 years ago

Hi Richard,

I'm experiencing seriously slow and almost hanging sessions when running clever setup. Is this because of npm being slow or is it something else?

Also, the backend is giving a problem with the whole plural and singular auto routing derived from the file name. It seems that a dependency of got upgraded and now the singular (eg. /user) no longer works. The frontend points to the singular (specifically /user) instead of the plural. Are you aware of this?

Kind regards

theocoria commented 10 years ago

1) Controller Allows route (non plural and plural) to be guessed based on filename:

  AssertionError: expected '/test/:id/?|/test/:id/:action/?|/tests/?|/tests/:action/?' to deeply equal '/test|/tests'
  + expected - actual

  +"/test|/tests"
  -"/test/:id/?|/test/:id/:action/?|/tests/?|/tests/:action/?"

  at Context.<anonymous> (/opt/dbis_backend/tests/unit/test.classes.Controller.js:50:43)
  at Test.Runnable.run (/opt/dbis_backend/node_modules/mocha/lib/runnable.js:196:15)
  at Runner.runTest (/opt/dbis_backend/node_modules/mocha/lib/runner.js:373:10)
  at /opt/dbis_backend/node_modules/mocha/lib/runner.js:451:12
  at next (/opt/dbis_backend/node_modules/mocha/lib/runner.js:298:14)
  at /opt/dbis_backend/node_modules/mocha/lib/runner.js:308:7
  at next (/opt/dbis_backend/node_modules/mocha/lib/runner.js:246:23)
  at Object._onImmediate (/opt/dbis_backend/node_modules/mocha/lib/runner.js:275:5)
  at processImmediate [as _immediateCallback] (timers.js:336:15)
pilsy commented 10 years ago

Hi Martin,

Yes there has been an upgrade to the routing methods that are in place, essentially it has been converted to route in a more restful manner.

Routes: (Say the name of our controller is UsersController)

pilsy commented 10 years ago

The test's work in my testing environment, any specific details you can give? if your free let's jump on a call

theocoria commented 10 years ago

I did see that the tests pass in a brand new clever init. It's not all that compatible with our current project that has slightly older versions of, well, everything :) hehe.... I don't really get it to be honest. I'll have a go at it taking into consideration that you changed a few things and I'll let you know if I can get it cleared up.

pilsy commented 10 years ago

Ill help you clear that up, sorry i missed your call about 15 minutes ago i`m calling you back now