Search code examples
ruby-on-railsthin

Rails - How do I configure thin's port and environment?


I've installed the thin gem for a rails app, but I'm unable to find a configuration file. Does installing the gem mean that I've installed the server? I just want to start Thin with a different port than 3000 and in production mode. The server is Windows. Any advice would be helpful.

Thanks.


Solution

  • Just specify it as such.

    rails server -e production -p 4000
    

    Source: http://guides.rubyonrails.org/command_line.html#rails-server