RoR项目部署合集

来源:互联网 发布:手机直播源码破解版 编辑:程序博客网 时间:2024/05/16 20:29

1、用localhost:3000可以访问到,用http://192.168.163.139:3000/却访问不到

rails server -b 0.0.0.0

2、退出shell,服务器进程继续运行

nohup sh lunch.sh &

lunch.sh这样写:rails s -b 0.0.0.0 > log.txt

如果使用的是xshell,用exit退出,不能直接叉掉!


0 0