Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: QueueClassic/queue_classic
base: 6057420fee
...
head fork: QueueClassic/queue_classic
compare: 0ac05e53ce
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Showing with 5 additions and 6 deletions.
  1. +0 −5 lib/queue_classic.rb
  2. +5 −1 lib/queue_classic/conn.rb
View
5 lib/queue_classic.rb
@@ -18,11 +18,6 @@ module QC
SqlFunctions = File.join(QC::Root, "/sql/ddl.sql")
DropSqlFunctions = File.join(QC::Root, "/sql/drop_ddl.sql")
- DB_URL =
- ENV["QC_DATABASE_URL"] ||
- ENV["DATABASE_URL"] ||
- raise(ArgumentError, "missing QC_DATABASE_URL or DATABASE_URL")
-
# You can use the APP_NAME to query for
# postgres related process information in the
# pg_stat_activity table. Don't set this unless
View
6 lib/queue_classic/conn.rb
@@ -84,7 +84,11 @@ def connect
end
def db_url
- URI.parse(DB_URL)
+ return @db_url if @db_url
+ url = ENV["QC_DATABASE_URL"] ||
+ ENV["DATABASE_URL"] ||
+ raise(ArgumentError, "missing QC_DATABASE_URL or DATABASE_URL")
+ @db_url = URI.parse(url)
end
def log(msg)

No commit comments for this range

Something went wrong with that request. Please try again.