Config deploy for production

This commit is contained in:
Jesse C. Fisher 2019-10-29 07:04:50 -07:00
parent b2a459b51a
commit 48a1a89f20
2 changed files with 36 additions and 10 deletions

View File

@ -1,4 +1,6 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
# #
# This file was generated by Bundler. # This file was generated by Bundler.
# #
@ -6,11 +8,22 @@
# this file is here to facilitate running it. # this file is here to facilitate running it.
# #
require 'pathname' require "pathname"
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath) Pathname.new(__FILE__).realpath)
require 'rubygems' bundle_binstub = File.expand_path("../bundle", __FILE__)
require 'bundler/setup'
load Gem.bin_path('puma', 'puma') if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end
require "rubygems"
require "bundler/setup"
load Gem.bin_path("puma", "puma")

View File

@ -1,4 +1,6 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
# #
# This file was generated by Bundler. # This file was generated by Bundler.
# #
@ -6,11 +8,22 @@
# this file is here to facilitate running it. # this file is here to facilitate running it.
# #
require 'pathname' require "pathname"
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath) Pathname.new(__FILE__).realpath)
require 'rubygems' bundle_binstub = File.expand_path("../bundle", __FILE__)
require 'bundler/setup'
load Gem.bin_path('puma', 'pumactl') if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end
require "rubygems"
require "bundler/setup"
load Gem.bin_path("puma", "pumactl")