Project

General

Profile

Actions

Bug #16917

closed

"ruby -run -e httpd . " did not work

Bug #16917: "ruby -run -e httpd . " did not work

Added by sevk (kk kk) over 5 years ago. Updated over 5 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
[ruby-core:98554]

Description

ruby -run -e httpd . -p 8080

no file list show

only show HelloWorld .


Files

2020-06-03_15-00.png (14.1 KB) 2020-06-03_15-00.png sevk (kk kk), 06/03/2020 07:00 AM
2020-06-03_15-04.png (9.36 KB) 2020-06-03_15-04.png sevk (kk kk), 06/03/2020 07:05 AM

Updated by mame (Yusuke Endoh) over 5 years ago Actions #1 [ruby-core:98555]

  • Status changed from Open to Feedback

It works for me. Could you show us the terminal log and the html result (if you can connect to the server)?

Updated by retro (Josef Šimánek) over 5 years ago Actions #2 [ruby-core:98556]

works for me as well on fresh 2.7.1 installation (compiled locally)

Updated by sevk (kk kk) over 5 years ago Actions #3 [ruby-core:98635]

mame (Yusuke Endoh) wrote in #note-1:

It works for me. Could you show us the terminal log and the html result (if you can connect to the server)?

only show hello world .

Updated by sevk (kk kk) over 5 years ago Actions #4

  • Description updated (diff)

Updated by sevk (kk kk) over 5 years ago Actions #5 [ruby-core:98636]

Ruby 2.5 is OK

Updated by mame (Yusuke Endoh) over 5 years ago Actions #6 [ruby-core:98638]

I suspect that the directory has index.html. Do you run Ruby 2.5 in the same directory as 2.7?

Updated by k0kubun (Takashi Kokubun) over 5 years ago Actions #7 [ruby-core:98639]

2020-06-03_15-04.png is running it with port 8081, and 2020-06-03_15-00.png is running it with port 8080. Just to be clear, ruby -run -e httpd . -p 8081 with Ruby 2.7 also reproduces the same problem, right?

Updated by sevk (kk kk) over 5 years ago Actions #8 [ruby-core:98657]

Ruby 2.7 : the directory has index.html
Ruby 2.5 : the directory has no index.html .

how to close this issues

Updated by nobu (Nobuyoshi Nakada) over 5 years ago Actions #9

  • Status changed from Feedback to Third Party's Issue
Actions

Also available in: PDF Atom