【问题标题】:Rails - How do I configure thin's port and environment?Rails - 如何配置 Thin 的端口和环境?
【发布时间】:2013-03-22 20:36:28
【问题描述】:

我已经为 Rails 应用程序安装了 Thin gem,但我找不到配置文件。安装 gem 是否意味着我已经安装了服务器?我只想使用与 3000 不同的端口并在生产模式下启动 Thin。服务器是 Windows。任何建议都会有所帮助。

谢谢。

【问题讨论】:

    标签: ruby-on-rails thin


    【解决方案1】:

    这样指定即可。

    rails server -e production -p 4000
    

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

    【讨论】:

    猜你喜欢
    • 2021-10-07
    • 1970-01-01
    • 2013-02-27
    • 2015-11-26
    • 1970-01-01
    • 1970-01-01
    • 2013-04-26
    • 2012-03-05
    • 2011-03-16
    相关资源
    最近更新 更多