X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fc1c8d60a4bb9cc8d3942c954bed4b66f8e9c557..fb6042e35c10da70c030b5544a14c38577f0413c:/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