diff --git a/templates/project/config.ru b/templates/project/config.ru index 6e1076a0..a509bf39 100644 --- a/templates/project/config.ru +++ b/templates/project/config.ru @@ -1,7 +1,8 @@ require 'dashing' +require 'securerandom' configure do - set :auth_token, 'YOUR_AUTH_TOKEN' + set :auth_token, ENV['AUTH_TOKEN'] || SecureRandom.uuid helpers do def protected! @@ -15,4 +16,4 @@ map Sinatra::Application.assets_prefix do run Sinatra::Application.sprockets end -run Sinatra::Application \ No newline at end of file +run Sinatra::Application