Search code examples
ruby-on-railsguard

starting Rails app on alternate port using Guard


I'm using Guard, and there doesn't seem to be a way to specify an alternate port than default 3000. How can I do that?


Solution

  • You can use guard-rails

    guard 'rails', :port => 5000 do
      watch('Gemfile.lock')
      watch(%r{^(config|lib)/.*})
    end