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