Skip to content

Commit 270eaa0

Browse files
authored
Suggest puma-dev configuration in bin/setup (rails#51088)
1 parent 17b0c0c commit 270eaa0

File tree

1 file changed

+5
-1
lines changed
  • railties/lib/rails/generators/rails/app/templates/bin

1 file changed

+5
-1
lines changed

railties/lib/rails/generators/rails/app/templates/bin/setup.tt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require "fileutils"
22

3-
# path to your application root.
43
APP_ROOT = File.expand_path("..", __dir__)
4+
APP_NAME = "<%= app_name %>"
55

66
def system!(*args)
77
system(*args, exception: true)
@@ -40,4 +40,8 @@ FileUtils.chdir APP_ROOT do
4040

4141
puts "\n== Restarting application server =="
4242
system! "bin/rails restart"
43+
44+
# puts "\n== Configuring puma-dev =="
45+
# system "ln -nfs #{APP_ROOT} ~/.puma-dev/#{APP_NAME}"
46+
# system "curl -Is https://#{APP_NAME}.test/up | head -n 1"
4347
end

0 commit comments

Comments
 (0)