This commit is contained in:
parent
79cb2bfc3d
commit
3e2e23e17c
23
bin/rake
23
bin/rake
|
@ -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")
|
||||||
|
|
27
bin/spring
27
bin/spring
|
@ -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/setup"
|
||||||
require "bundler"
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue