Last active
February 16, 2022 13:36
-
-
Save fujimogn/0cb60f0be8cb21aa3be651667ff3d845 to your computer and use it in GitHub Desktop.
`bin/dev`したらブラウザで自動でlocalhost:3000開く設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is used by Rack-based servers to start the application. | |
require_relative 'config/environment' | |
run Rails.application | |
Rails.application.load_server | |
Launchy.open('http://localhost:3000') if Rails.env.development? # 追加 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group :development do | |
## (略) | |
gem 'launchy' # 追加 | |
## (略) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment