Suggest puma-dev configuration in bin/setup (#51088)

This commit is contained in:
David Heinemeier Hansson 2024-02-14 08:26:19 -08:00 committed by GitHub
parent 17b0c0ce14
commit 270eaa0565
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
require "fileutils"
# path to your application root.
APP_ROOT = File.expand_path("..", __dir__)
APP_NAME = "<%= app_name %>"
def system!(*args)
system(*args, exception: true)
@ -40,4 +40,8 @@ FileUtils.chdir APP_ROOT do
puts "\n== Restarting application server =="
system! "bin/rails restart"
# puts "\n== Configuring puma-dev =="
# system "ln -nfs #{APP_ROOT} ~/.puma-dev/#{APP_NAME}"
# system "curl -Is https://#{APP_NAME}.test/up | head -n 1"
end