Merge pull request #2223 from srbaker/optionally-skip-docker

Don't use docker if the file `.skip-docker` exists in project.
This commit is contained in:
Matt Rogers 2019-05-13 09:03:42 -05:00 committed by GitHub
commit 820f5b5f8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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