This commit is contained in:
Georg Gadinger 2017-03-29 22:40:40 +02:00
parent 79cb2bfc3d
commit 3e2e23e17c
3 changed files with 30 additions and 22 deletions

View File

@ -1,8 +1,17 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
begin # frozen_string_literal: true
load File.expand_path("../spring", __FILE__) #
rescue LoadError # This file was generated by Bundler.
end #
require_relative '../config/boot' # The application 'rake' is installed as part of a gem, and
require 'rake' # this file is here to facilitate running it.
Rake.application.run #
require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
require "rubygems"
require "bundler/setup"
load Gem.bin_path("rake", "rake")

View File

@ -1,18 +1,17 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'spring' is installed as part of a gem, and
# this file is here to facilitate running it.
#
# This file loads spring without using Bundler, in order to be fast require "pathname"
# It gets overwritten when you run the `spring binstub` command ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
unless defined?(Spring)
require "rubygems" require "rubygems"
require "bundler" require "bundler/setup"
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m) load Gem.bin_path("spring", "spring")
ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
ENV["GEM_HOME"] = ""
Gem.paths = ENV
gem "spring", match[1]
require "spring/binstub"
end
end

View File

@ -13,7 +13,7 @@ namespace :deploy do
task :stop do task :stop do
on roles(:all) do on roles(:all) do
execute :sh, '-c', '\'tmux list-panes -t justask -F "#{pane_pid}" | xargs kill\'' execute :sh, '-c', '\'tmux list-panes -t retrospring -F "#{pane_pid}" | xargs kill\''
end end
end end