]> git.openstreetmap.org Git - rails.git/blobdiff - bin/setup
Update minimum ruby version to 3.2
[rails.git] / bin / setup
index b5accee8aca084a9d9d65a33eb4fd995f714eef4..ced1ba3708f5024f01e48454ba2f15d9eac89a82 100755 (executable)
--- a/bin/setup
+++ b/bin/setup
@@ -1,11 +1,11 @@
 #!/usr/bin/env ruby
 require "fileutils"
 
 #!/usr/bin/env ruby
 require "fileutils"
 
-# path to your application root.
 APP_ROOT = File.expand_path("..", __dir__)
 APP_ROOT = File.expand_path("..", __dir__)
+APP_NAME = "openstreetmap".freeze
 
 
-def system!(*args)
-  system(*args, :exception => true)
+def system!(*)
+  system(*, :exception => true)
 end
 
 FileUtils.chdir APP_ROOT do
 end
 
 FileUtils.chdir APP_ROOT do
@@ -30,4 +30,8 @@ FileUtils.chdir APP_ROOT do
 
   puts "\n== Restarting application server =="
   system! "bin/rails restart"
 
   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
 end