Don't use docker if the file .skip-docker exists in project.

This commit is contained in:
Steven R. Baker 2019-05-13 15:55:59 +02:00
parent 8bf0627d41
commit 7648e7ebf3
5 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View file

@ -25,3 +25,4 @@ db/data.yml
nbproject
rerun.txt
tags
.skip-docker

View file

@ -1,5 +1,5 @@
#!/usr/bin/env ruby
if ENV["RAILS_ENV"] != "production"
unless ENV["RAILS_ENV"] == "production" || File.exist?("#{__dir__}/../.skip-docker")
exec("#{__dir__}/../script/docker-environment", $PROGRAM_NAME, *ARGV) unless File.exist?("/etc/app-env")
end
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)

View file

@ -1,5 +1,5 @@
#!/usr/bin/env ruby
if ENV["RAILS_ENV"] != "production"
unless ENV["RAILS_ENV"] == "production" || File.exist?("#{__dir__}/../.skip-docker")
exec("#{__dir__}/../script/docker-environment", $PROGRAM_NAME, *ARGV) unless File.exist?("/etc/app-env")
end

View file

@ -1,5 +1,5 @@
#!/usr/bin/env ruby
if ENV["RAILS_ENV"] != "production"
unless ENV["RAILS_ENV"] == "production" || File.exist?("#{__dir__}/../.skip-docker")
exec("#{__dir__}/../script/docker-environment", $PROGRAM_NAME, *ARGV) unless File.exist?("/etc/app-env")
end
require_relative '../config/boot'

View file

@ -1,5 +1,5 @@
#!/usr/bin/env ruby
if ENV["RAILS_ENV"] != "production"
unless ENV["RAILS_ENV"] == "production" || File.exist?("#{__dir__}/../.skip-docker")
exec("#{__dir__}/../script/docker-environment", $PROGRAM_NAME, *ARGV) unless File.exist?("/etc/app-env")
end