Use Bundler in config.ru
This commit is contained in:
parent
6b7d96ecb9
commit
8e6fcddd49
|
@ -39,6 +39,9 @@ and the following LaTeX programs:
|
||||||
* isodoc package (>= 1.00)
|
* isodoc package (>= 1.00)
|
||||||
* rubber
|
* 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
|
== Installation
|
||||||
|
|
||||||
For now, Stop… Camping Time! is in a developing state and not ready for
|
For now, Stop… Camping Time! is in a developing state and not ready for
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#!/usr/bin/env rackup
|
#!/usr/bin/env rackup
|
||||||
|
|
||||||
|
require "bundler/setup"
|
||||||
require "./stoptime"
|
require "./stoptime"
|
||||||
|
|
||||||
StopTime::Models::Base.establish_connection( :adapter => 'sqlite3',
|
StopTime::Models::Base.establish_connection(adapter: "sqlite3",
|
||||||
:database => 'db/stoptime.db',
|
database: "db/stoptime.db",
|
||||||
:timeout => 10000 )
|
timeout: 10000)
|
||||||
StopTime.create
|
StopTime.create
|
||||||
run StopTime
|
run StopTime
|
||||||
|
|
Loading…
Reference in New Issue