Question

I used mimosa to generate an express app, and work with it using mimosa watch --server. Everything is great.

There is a server.coffee file, autogenerated by mimosa and requirejs compliant, that contains the line exports.startServer = function(config) { ... }

How do I start that through the command line? I try coffee server.coffee, sometimes with an -r.

Thanks!

OMGoodness, forgot to mention I am on Windows. Everything else has worked the same as any examples I find on the internet (NPM wasn't installing well 6 months ago, but things are really good lately).

Node v 0.8.14 coffee 1.4.0 mimosa 0.6.1

Mimosa says it runs startServer from server.coffee. What is the equivalent from a command line considering requirejs format of server.coffee?

Was it helpful?

Solution

Mimosa author here. Sorry I didn't notice this sooner! You are always welcome to come to the Google Group to ask questions: https://groups.google.com/forum/#!forum/mimosajs That'll get noticed right away!

coffee server.coffee isn't what you should be executing.

Once you've run mimosa new, the project you are delivered it started by executing mimosa watch -s. That starts the watching of the file system, builds all the files, and then starts the server by calling the startServer method of your server file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top