Sha256: 3617ec1812b3fb98ee2fcc2f814be53ed5960c3c66b443c91b63aecea7627ecf

Contents?: true

Size: 921 Bytes

Versions: 3

Compression:

Stored size: 921 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, :hyves, :facebook]
  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

3 entries across 3 versions & 1 rubygems

Version Path
firefly-1.5.2 config.ru.example
firefly-1.5.1 config.ru.example
firefly-1.5.0 config.ru.example