igorklopov / enclose

Compile your Node.js project into an executable
http://enclosejs.com
Other
936 stars 43 forks source link

Problem with http-server #50

Closed tylerlong closed 9 years ago

tylerlong commented 9 years ago

https://github.com/indexzero/http-server

Nothing happends when executing the final binary

Tylers-Mac-mini:http-server tylerlong$ ./bin/http-server 
Starting up http-server, serving ./public on: http://0.0.0.0:8080

Available on:
    http://127.0.0.1:8080
    http://192.168.1.13:8080
Hit CTRL-C to stop the server
^Chttp-server stopped.
Tylers-Mac-mini:http-server tylerlong$ enclose --loglevel info -x -o bin/http-server-standalone ./lib/http-server.js

/Users/tylerlong/src/test/http-server/node_modules/union/lib/core.js
  error  Cannot find module 'spdy' from '/Users/tylerlong/src/test/http-server/node_modules/union/lib'

Tylers-Mac-mini:http-server tylerlong$ npm install spdy
npm WARN package.json vows@0.7.0 No repository field.
spdy@1.32.4 node_modules/spdy
Tylers-Mac-mini:http-server tylerlong$ ./bin/http-server 
Starting up http-server, serving ./public on: http://0.0.0.0:8080

Available on:
    http://127.0.0.1:8080
    http://192.168.1.13:8080
Hit CTRL-C to stop the server
^Chttp-server stopped.
Tylers-Mac-mini:http-server tylerlong$ enclose --loglevel info -x -o bin/http-server-standalone ./lib/http-server.js

/Users/tylerlong/src/test/http-server/lib/http-server.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/lib/index.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/lib/ecstatic.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/index.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/corser/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/corser/lib/corser.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/lib/buffered-stream.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/lib/http-stream.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/lib/response-stream.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/lib/routing-stream.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/lib/core.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/node_modules/mime/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/node_modules/mime/mime.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/node_modules/url-join/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/node_modules/url-join/lib/url-join.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/lib/ecstatic/showdir.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/lib/ecstatic/status-handlers.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/lib/ecstatic/etag.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/lib/ecstatic/opts.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/node_modules/minimist/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/node_modules/minimist/index.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/lib/http-proxy.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/node_modules/qs/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/node_modules/qs/index.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/lib/request-stream.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/node_modules/mime/types.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/node_modules/he/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/ecstatic/node_modules/he/he.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/lib/http-proxy/index.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/node_modules/qs/lib/index.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/utils.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/protocol/index.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/response.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/scheduler.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/zlib-pool.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/stream.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/connection.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/server.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/client.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/node_modules/eventemitter3/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/node_modules/eventemitter3/index.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/node_modules/qs/lib/stringify.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/node_modules/qs/lib/parse.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/protocol/dictionary.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/protocol/constants.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/protocol/parser.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/spdy/lib/spdy/protocol/framer.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/lib/http-proxy/common.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/union/node_modules/qs/lib/utils.js
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/node_modules/requires-port/package.json
  info  The file was included into output executable as js code

/Users/tylerlong/src/test/http-server/node_modules/http-proxy/node_modules/requires-port/index.js
  info  The file was included into output executable as js code

Tylers-Mac-mini:http-server tylerlong$ ./bin/http-server 
Starting up http-server, serving ./public on: http://0.0.0.0:8080

Available on:
    http://127.0.0.1:8080
    http://192.168.1.13:8080
Hit CTRL-C to stop the server
^Chttp-server stopped.
Tylers-Mac-mini:http-server tylerlong$ 
Tylers-Mac-mini:http-server tylerlong$ ./bin/http-server-standalone 
Tylers-Mac-mini:http-server tylerlong$ 
igorklopov commented 9 years ago

http-server seems to be fixed. Please try with latest 1.0.1

tylerlong commented 8 years ago

I just realized that I made a mistake in my command:enclose --loglevel info -x -o bin/http-server-standalone ./lib/http-server.js

It should be enclose --loglevel info -x -o bin/http-server-standalone ./bin/http-server. I tried again and it did work.