Use Bundler in config.ru

This commit is contained in:
Paul van Tilburg 2019-06-08 12:08:36 +02:00
parent 6b7d96ecb9
commit 8e6fcddd49
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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