X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7eafdca51c2354c7905a9ea918e7ba5653c46998..c8ad2cc456e1e8a3d4c09e31fb6860955655d237:/bin/setup diff --git a/bin/setup b/bin/setup index ec47b79b3..ff6a47532 100755 --- a/bin/setup +++ b/bin/setup @@ -1,11 +1,11 @@ #!/usr/bin/env ruby require "fileutils" -# path to your application root. APP_ROOT = File.expand_path("..", __dir__) +APP_NAME = "openstreetmap".freeze def system!(*args) - system(*args) || abort("\n== Command #{args} failed ==") + system(*args, :exception => true) 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== Configuring puma-dev ==" + # system "ln -nfs #{APP_ROOT} ~/.puma-dev/#{APP_NAME}" + # system "curl -Is https://#{APP_NAME}.test/up | head -n 1" end