mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 14:31:47 +01:00
Overhaul the environment system in bin/ to make the defaults easier to understand. Update the installation instructions.
Fixes #2170, #2372, #2329, #2368
This commit is contained in:
parent
3f22c8a036
commit
4d65a8f761
7 changed files with 37 additions and 25 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
unless ENV["RAILS_ENV"] == "production" || File.exist?("#{__dir__}/../.skip-docker")
|
||||
exec("#{__dir__}/../script/docker-environment", $PROGRAM_NAME, *ARGV) unless File.exist?("/etc/app-env")
|
||||
if File.exist?("#{__dir__}/../.use-docker")
|
||||
exec("#{__dir__}/../script/docker-environment", $PROGRAM_NAME, *ARGV)
|
||||
end
|
||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
||||
load Gem.bin_path('bundler', 'bundle')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue