Skip to content

Commit

Permalink
"server.js" is one of the most popular file names to put main server …
Browse files Browse the repository at this point in the history
…module code in Node.js apps.
  • Loading branch information
fb3 authored and Patrick Bozeman committed May 17, 2011
1 parent 3a70116 commit 4b3ca94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud_controller/staging/node/plugin.rb
Expand Up @@ -36,7 +36,7 @@ def detect_main_file
# We need to make this smarter, and then allow client to choose or
# send us a hint.

['app.js', 'index.js', 'main.js', 'application.js'].each do |fname|
['server.js', 'app.js', 'index.js', 'main.js', 'application.js'].each do |fname|
file = fname if js_files.include? fname
end
end
Expand Down

0 comments on commit 4b3ca94

Please sign in to comment.