开发者

what would be my rails URL?

i have a rails app located at [home]/rails_apps/final/final2 o开发者_如何学编程n my Bluehosts server. I run script/server here with ssh/shell..

actionen@actionengineers.com [~/rails_apps/final/final2]# script/server -e production
=> Booting Mongrel
=> Rails 2.3.4 application starting on http://0.0.0.0:3000
/home/actionen/rails_apps/final/final2/app/controllers/items_controller.rb:87: warning: parenthesize argument(s) for future version
/home/actionen/rails_apps/final/final2/app/controllers/shelves_controller.rb:84: warning: parenthesize argument(s) for future version
=> Call with -d to detach
=> Ctrl-C to shutdown server

I am not able to see my site at http://actionengineers.com:3000. what is my url?!


There is nothing wrong with how you've started Mongrel. 0.0.0.0 is the wildcard address; it means that the server will listen on all available interfaces, even ones that are brought up after the server starts.

actionengineers.com resolves to 69.89.27.235. Is this the IP address for your server? Run ifconfig -a and ensure the IP matches.

If it does, you probably have a firewall issue. iptables is the most common way to set up a firewall on Linux, though it is by no means the only way. Run iptables -L INPUT as root to see the existing rules for incoming packets. In particular, look at the first line for the default policy. If it's DROP, then any packets that don't match a rule are dropped.


If the firewall passes this port outside, your url should be http://:3000 or http://:3000 Do not forget open 3000 port in your firewall

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜