Skip to content
Browse files

Fix bin/console

  • Loading branch information...
1 parent 3504563 commit 9ef957835b730ca50b173f95d7671cdc1e0270a1 @brandur committed Nov 10, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 bin/console
View
11 bin/console
@@ -1,16 +1,15 @@
#!/usr/bin/env ruby
-require "irb"
-require "irb/completion"
require "bundler/setup"
Bundler.require
-$: << "./lib"
-require "hekla"
+require "irb"
+require "irb/completion"
-DB = Sequel.connect(Hekla::Config.database_url)
+DB = Sequel.connect(ENV["DATABASE_URL"] ||
+ raise("missing_environment=DATABASE_URL"))
-require_relative "../models/article"
+require_relative "../lib/hekla"
# Sinatra actually has a hook on `at_exit` that activates whenever it's
# included. This setting will suppress it.

0 comments on commit 9ef9578

Please sign in to comment.
Something went wrong with that request. Please try again.