مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
fix: fix postal version command
هذا الالتزام موجود في:
@@ -145,7 +145,7 @@ module Postal
|
||||
ActiveRecord::Base.connection_pool.disconnect!
|
||||
|
||||
config = ActiveRecord::Base.configurations
|
||||
.configs_for(env_name: Rails.env)
|
||||
.configs_for(env_name: Config.rails.environment)
|
||||
.first
|
||||
.configuration_hash
|
||||
|
||||
@@ -173,7 +173,7 @@ module Postal
|
||||
private
|
||||
|
||||
def read_version_file(file)
|
||||
path = Rails.root.join(file)
|
||||
path = File.expand_path("../../../" + file, __FILE__)
|
||||
return unless File.exist?(path)
|
||||
|
||||
value = File.read(path).strip
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path("../lib/postal/version", __dir__)
|
||||
require File.expand_path("../lib/postal/config", __dir__)
|
||||
puts Postal.version
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم