mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +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')
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
APP_PATH = File.expand_path('../config/application', __dir__)
|
||||
|
|
|
|||
4
bin/rake
4
bin/rake
|
|
@ -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
|
||||
require_relative '../config/boot'
|
||||
require 'rake'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
# This file loads spring without using Bundler, in order to be fast
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue