CleverStack / cleverstack-cli

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

Clever Serve + CleverORM issues #58

Closed advancedits closed 8 years ago

advancedits commented 9 years ago

I have installed cleverstack with clever init myapp Everything was installed with no errors.

Then when run "clever serve" I get the following response:

Running "clean:server" (clean) task

Running "connect:livereload" (connect) task Started connect web server on 0.0.0.0:9000.

Running "connect:dist" (connect) task Started connect web server on 0.0.0.0:9009.

Running "concurrent:watch" (concurrent) task Loading "Gruntfile.js" tasks...ERROR

Error: Cannot find module 'utils' Warning: Task "server:web" not found. Use --force to continue.

Aborted due to warnings. Running "watch:less" (watch) task Running "watch:livereload" (watch) task Waiting...Waiting...


The app seems to run fine but not sure why Gruntfile.js can't find 'utils', I checked out the file (which I had not touched) and the path looked correct to utils. The demo app seems to run fine with that error. Any ideas here?

Then I tried to install clever-orm by running the command "clever install clever-orm" in my main app folder and I get the following error:

Attempting to install clever-orm... ├── Searching for modules... ├── Searching NPM... ├── Searching Bower... ├── ? Installing clever-orm... ├── Installing NPM modules for clever-orm... ? Successfully installed clever-orm... ├── Installing bundledDependencies... ├── ? Running grunt tasks for module clever-orm... Loading "Gruntfile.js" tasks...ERROR

Error: Cannot find module 'utils' Warning: Task "prompt:cleverOrmConfig" not found. Use --force to continue.

Aborted due to warnings. Running database migrations... Error: Command failed: 'NODE_ENV' is not recognized as an internal or external c ommand, operable program or batch file.


Any ideas here?

My plan is to use SQLite with clever but having a hard time getting the demo app off the ground

advancedits commented 9 years ago

Just to add I'm running this in Windows command prompt

pilsy commented 9 years ago

Hi @advancedits, i'm taking a look at this now but i don't have a windows machine here i can test with - do you mind screen sharing to debug?

advancedits commented 9 years ago

yes I can screenshare for debugging....how do we start?

advancedits commented 9 years ago

@pilsy let me know what screenshots you want or how you want to screenshare

pilsy commented 9 years ago

It would be awesome if we could organise a time to do a google hangout? email me richard.gustin86@gmail.com

albertStaalburger commented 9 years ago

Has this been fixed? I am having the same problem with serving the clean install. The frontend runs but the backend is giving me problems.

advancedits commented 9 years ago

Unfortunately no...we have decided to experiment with some other frameworks

pilsy commented 9 years ago

@albertStaalburger are you also running on windows?

albertStaalburger commented 9 years ago

Yes, I am also on Win. I traced the error and am working on finding a hot fix. I have used clever stack before but on MAC. It looks like the utils folder is missing from the backend, the frontend is building fine. It is required by jsonlint.js

var utils = require('utils');

This is the error I receive when executing clever serve on the backend:

Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'utils'
Warning: Task "server:web" not found. Use --force to continue.

Aborted due to warnings.
albertStaalburger commented 9 years ago

Ok, so spending some time tracing the origin of the problem I see that in the magicModule.js the getModulePaths() function returns an empty array. I assume this should return an array of utilities? But this is the furthest I have come and seem to be running out of skills to solve this :)

Any help or guidance will be greatly appreciated.

pilsy commented 9 years ago

Hey @albertStaalburger - wondering if the issues you were experiencing with CleverStack were fixed along with feat(magicModules): Added recursive folder loading, fixes #111 ?

albertStaalburger commented 9 years ago

I will have a look during next week as I find time. Thank you for getting back. Will give you feedback ass soon as I have tried it.