Skip to content

Instantly share code, notes, and snippets.

@fujimogn
Last active February 16, 2022 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fujimogn/0cb60f0be8cb21aa3be651667ff3d845 to your computer and use it in GitHub Desktop.
Save fujimogn/0cb60f0be8cb21aa3be651667ff3d845 to your computer and use it in GitHub Desktop.
`bin/dev`したらブラウザで自動でlocalhost:3000開く設定
# 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? # 追加
group :development do
## (略)
gem 'launchy' # 追加
## (略)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment