bind ipv6
This commit is contained in:
parent
02116c9dd1
commit
e059c1d62d
1 changed files with 1 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ class MoodApp < Sinatra::Base
|
||||||
register Sinatra::ActiveRecordExtension
|
register Sinatra::ActiveRecordExtension
|
||||||
register Sinatra::Namespace
|
register Sinatra::Namespace
|
||||||
set :database, { adapter: 'sqlite3', database: "mood-#{ENV['RACK_ENV']}.sqlite3" }
|
set :database, { adapter: 'sqlite3', database: "mood-#{ENV['RACK_ENV']}.sqlite3" }
|
||||||
|
set :bind, '::1'
|
||||||
|
|
||||||
get '/' do
|
get '/' do
|
||||||
@mode = Mood.last&.mode || 'croisiere'
|
@mode = Mood.last&.mode || 'croisiere'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue