How to run rails driven app (Snorby) on different port

0

Sorry for being such a newbie but is it possible to make rails driven app (Snorby) being started on port different than 3000? How to do this? I've changed the ports from 3000 to 9000 at snorby_config.yml but it still running port 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

What am I doing wrong?

Drew

Posted 2015-07-31T00:47:02.683

Reputation: 1 628

Answers

0

Try this

$ cd /usr/local/var/www/snorby && bundle exec rails server -p 9000 -e production

Deepak Mahakale

Posted 2015-07-31T00:47:02.683

Reputation: 223

-p stands for port – Deepak Mahakale – 2015-10-06T09:06:12.790

Thanks for your reply! Could you please help me with another issue: http://superuser.com/questions/992695/deploying-ruby-app-with-apache-2-4

– Drew – 2015-10-27T23:14:39.047