Add job to clean dead links
This commit is contained in:
17
config/environment.rb
Normal file
17
config/environment.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
require "uri"
|
||||
require "pg"
|
||||
require "connection_pool"
|
||||
require "que"
|
||||
require "hanami/boot"
|
||||
|
||||
uri = URI.parse(ENV['DATABASE_URL'])
|
||||
|
||||
Que.connection = ConnectionPool.new(size: 10) do
|
||||
PG::Connection.open(
|
||||
host: uri.host,
|
||||
user: uri.user,
|
||||
password: uri.password,
|
||||
port: uri.port || 5432,
|
||||
dbname: uri.path[1..-1]
|
||||
)
|
||||
end
|
Reference in New Issue
Block a user