抱歉,我是新手,但是否可以使 rails 驱动的应用程序 (Snorby) 在 3000 以外的端口上启动?如何做到这一点?我已将端口从更改3000
为9000
snorby_config.yml但它仍然运行端口 3000...
$ cd /usr/local/var/www/snorby && bundle exec rails server -e production
=> Booting WEBrick
=> Rails 3.1.12 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2015-07-30 17:37:28] INFO WEBrick 1.3.1
[2015-07-30 17:37:28] INFO ruby 1.9.3 (2014-11-13) [x86_64-darwin14.3.0]
[2015-07-30 17:37:28] INFO WEBrick::HTTPServer#start: pid=40591 port=3000
cache: [GET /] miss
我究竟做错了什么?
答案1
尝试这个
$ cd /usr/local/var/www/snorby && bundle exec rails server -p 9000 -e production