Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想设置默认端口
rails s
到 3010,而不必说:
rails s -p 3010
...每次。有任何想法吗?
Port您可以通过添加以下代码来覆盖config/boot.rb
Port
config/boot.rb
require 'rails/commands/server' module Rails class Server alias :default_options_alias :default_options def default_options default_options_alias.merge!(:Port => 3010) end end end