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