app/environment.rb in sqlui-0.1.27 vs app/environment.rb in sqlui-0.1.28

- old
+ new

@@ -1,23 +1,23 @@ # frozen_string_literal: true # Parses and provides access to environment variables. class Environment - SERVER_ENV = ENV.fetch('SERVER_ENV', 'development').to_sym - SERVER_PORT = ENV.fetch('SERVER_PORT', 8080) + APP_ENV = ENV.fetch('APP_ENV', 'development').to_sym + APP_PORT = ENV.fetch('APP_PORT', 8080) def self.server_env - SERVER_ENV + APP_ENV end def self.development? - SERVER_ENV == :development + APP_ENV == :development end def self.production? - SERVER_ENV == :production + APP_ENV == :production end def self.server_port - SERVER_PORT + APP_PORT end end