-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autogenerated app error #76
Comments
Seems to work for me with latest (1.1.5-beta): $ matador init tt1 [email protected] ./node_modules/matador then was able to render both localhost:3000 and localhost:3000/soy |
Thanks for the report. It'd be nice if this worked out of the box without having to do any configuration, so we'll look into it. |
Note, I fixed this yesterday (or at least I thought it did). :-) |
Heh, we replied at the same time. From the log it looks like the error is being thrown within the spawn command. Can't tell which directory doesn't exist. Probably inputDir. |
From the steps above, I don't understand "cd all && node server.js". You want to run the server.js in the generated directory, right? |
I did the same tests again. $ node -v to be sure there will be fresh version $npm install -g matador $ matador init tt1 $ cd tt1 /srv/www/tt1# node server.js module.js:337 As expected, because there is no server.js in tt1 dir /srv/www/tt1# dir so, I need to enter the 'all' dir to run the server $ cd all /srv/www/tt1/node_modules/matador/src/matador.js:431 |
Huh, interesting. I wonder why you're not getting a server.js. Might have to pull in some help on this one.
|
I think it's a system based problem. exec('cp -R ' + __dirname + '/../src/all/* ' + path, function (err, out) { now '$ matador init tt1' creates the app skeleton properly. But i'm not sure about the internal content. |
nodejs 0.6.19
after installation i did simple test
$ matador init tt1
$ cd !$ && npm install matador
$ cd all && node server.js
got bunch of errors
matador running on port 3000
soynode: Compile error
execvp(): No such file or directory
/srv/www/tt1/node_modules/matador/src/matador.js:431
throw err
^
Error: Error compiling templates
at ChildProcess. (/srv/www/tt1/node_modules/matador/node_modules/soynode/lib/soynode.js:177:18)
at ChildProcess.emit (events.js:70:17)
at maybeExit (child_process.js:362:16)
at Socket. (child_process.js:467:7)
at Socket.emit (events.js:67:17)
at Array.0 (net.js:335:10)
at EventEmitter._tickCallback (node.js:190:38)
The text was updated successfully, but these errors were encountered: