Sha256: 487ac7d7811db295662a4f5563934bf4e3e57652e7c608acf6a4e2be4c72ca20

Contents?: true

Size: 902 Bytes

Versions: 2

Compression:

Stored size: 902 Bytes

Contents

require 'rubygems'
require 'firefly'

disable :run

app = Firefly::Server.new do
  set :hostname,    "localhost:3000"
  set :api_key,     "test"

  # Use Sqlite3 by default
  set :database,    "sqlite3://#{Dir.pwd}/firefly.sqlite3"

  # Set number of recent urls to show
  set :recent_urls, 10

  # You can use MySQL as well. 
  # Make sure to install the do_mysql gem:
  #    sudo gem install do_mysql
  # set :database,    "mysql://root@localhost/firefly"

  # If you want to enable 'share to twitter'

  # A secure key to be used with 'share to twitter'
  # set :sharing_key,    "set-a-long-secure-key-here"
  set :sharing_key,      ""

  # Currently only twitter is supported
  # set :sharing_targets, [:twitter]
  set :sharing_targets, []

  # Set the TLDs (in URLs) that are allowed to be shortened
  # set :sharing_domains, ["example.com", "mydomain.com"]
  set :sharing_domain, []
end

run app

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
firefly-1.4.1 config.ru.example
firefly-1.4.0 config.ru.example