Running Sinatra on port 80

后端 未结 4 1194
旧时难觅i
旧时难觅i 2021-02-18 23:33

I installed Sinatra and it works but it uses port 4567 by default. I want it to run on port 80.

In an effort to get it to work on port 80, I tried this:

         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-19 00:01

    An alternate way to accepted answer

    rvmsudo rackup -p 80
    

    In case one is using RVM to manage Ruby versions, you may not be able to use sudo that easily (or else would need to setup ruby in path).

提交回复
热议问题