Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Puma rails server only accepts localhost:3000 rather than 127.0.0.1:3000

Trying out Puma as my Rails server.

Anybody know why the Puma rails server only accepts localhost:3000 rather than 127.0.0.1:3000?

I'm going to want to test Facebook OAuth, and that will need an IP address.

like image 398
justingordon Avatar asked Feb 17 '15 06:02

justingordon


2 Answers

Have you tried rails s -b 127.0.0.1 -p 3000? That's always worked for me.

like image 199
Cody Duval Avatar answered Nov 13 '22 07:11

Cody Duval


Try env PORT=port_number rails s -b your_IP_Address And the server will start on https://your_IP_Address:port_number

like image 27
dArK kNiGhT Avatar answered Nov 13 '22 09:11

dArK kNiGhT