On Wed, Sep 12, 2012 at 8:29 AM, TG <tgloc
...@gmail.com> wrote:
> Update - I looked at the strata.js and the strata.cmd and am able to get
> strata successfully execute for --help and --version. I will also
> correctly run when supplied the -d option to perform directory listings.
> However, when I try to run my app.js I get the error below. I've checked
> to see if anything else is on the port 1982 and there is nothing. I think
> that the code is perhaps executing twice or that my app.js needs to specify
> a separate port than the strata monitor ? If so, how do I do this ?
> D:\node_apps\app_1>node_modules\.bin\strata -r10000 -p3000 app.js
> >> Strata web server version 0.17.0 running on node 0.8.9
> >> Listening on 0.0.0.0:1982, CTRL+C to stop
> events.js:66
> throw arguments[1]; // Unhandled 'error' event
> ^
> Error: listen EADDRINUSE
> at errnoException (net.js:769:11)
> at Server._listen2 (net.js:909:14)
> at listen (net.js:936:10)
> at Server.listen (net.js:985:5)
> at startServer
> (D:\node_apps\app_1\node_modules\strata\lib\index.js:165:12)
> at Object.run
> (D:\node_apps\app_1\node_modules\strata\lib\index.js:82:3)
> at Object.<anonymous>
> (D:\node_apps\app_1\node_modules\strata\bin\strata:124
> :10)
> at Module._compile (module.js:449:26)
> at Object.Module._extensions..js (module.js:467:10)
> at Module.load (module.js:356:32)
> On Wednesday, September 12, 2012 9:45:54 AM UTC-4, TG wrote:
>> Question:
>> Is there any example on what the directory layout should/might be for
>> node and strata ?
>> 1. I created a directory: *D:\node_apps\app_1*
>> 2. Changed to the app_1 directory and ran npm to download/install strata
>> via *npm install strata*
>> 3. npm ran without errors and created a sub-directory named *
>> D:\node_apps\app_1\node_modules* containing \.bin and \strata
>> sub-directories.
>> 4. I created the example file: *app.js* in the *D:\node_apps\app_1*directory.
>> 5. I then switched to that directory and ran *node app.js* in a command
>> prompt.
>> And it worked the first time!!! But this was my very first effort with
>> node and I am completely guessing as to a 'proper' directory structure and
>> looking for guidance.
>> Clearly need to be able to use the: $ strata -p 3000 -r 1 app.js
>> I am running on Windows 7 - can anyone provide details on how to get the
>> reload functionality to work ?
>> Thanks in advance and strata looks very nice indeed!