Sha256: 3f063d3dbdc2bd28127ba4ae2d5e33513fd3e33bfdee214177f84f66566d31d7

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

#!/usr/bin/env ruby

# Libs and init
require 'thin'

# Initialize some local constants
APP_ROOT = File.dirname(__FILE__) + '/../'
APP_VER = File.read "#{APP_ROOT}/VERSION"
APP_STARTED = Time.now
APP_DEFAULT_PORT = 3000

# Prepare thin
rackup_file = File.expand_path "#{APP_ROOT}/lib/config.ru"
argv = ARGV
argv << ["-R", rackup_file] unless ARGV.include?("-R")
argv << ["-p", APP_DEFAULT_PORT.to_s] unless ARGV.include?("-p")
argv << ["-e", "production"] unless ARGV.include?("-e")
argv << ["-d"] unless ARGV.include?("-d")

# Start thin
Thin::Runner.new(argv.flatten).run!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.6.0 bin/rest-ftp-daemon