Use Bundler in config.ru

development
Paul van Tilburg 4 years ago
parent 6b7d96ecb9
commit 8e6fcddd49
  1. 3
      README.rdoc
  2. 7
      config.ru

@ -39,6 +39,9 @@ and the following LaTeX programs:
* isodoc package (>= 1.00)
* rubber
It is also possible to use Bundler (which is the default when using
@config.ru@), in this you only need Ruby and Bundler installed.
== Installation
For now, Stop… Camping Time! is in a developing state and not ready for

@ -1,9 +1,10 @@
#!/usr/bin/env rackup
require "bundler/setup"
require "./stoptime"
StopTime::Models::Base.establish_connection( :adapter => 'sqlite3',
:database => 'db/stoptime.db',
:timeout => 10000 )
StopTime::Models::Base.establish_connection(adapter: "sqlite3",
database: "db/stoptime.db",
timeout: 10000)
StopTime.create
run StopTime

Loading…
Cancel
Save