Permalink
Browse files

Added a shamelessly poached vegas app for launching the web app.

  • Loading branch information...
1 parent 3cad474 commit a494bf574cea8752daaf54e0f3b6c03db9f92236 Dan Lecocq committed Apr 17, 2012
Showing with 34 additions and 4 deletions.
  1. +23 −0 bin/qless-web
  2. +11 −4 qless.gemspec
View
@@ -0,0 +1,23 @@
+#! /usr/bin/env ruby
+
+$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
+begin
+ require 'vegas'
+rescue LoadError
+ require 'rubygems'
+ require 'vegas'
+end
+
+require 'qless/server'
+
+Vegas::Runner.new(Qless::Server, 'qless-web', {
+ :before_run => lambda {|v|
+ path = (ENV['RESQUECONFIG'] || v.args.first)
+ load path.to_s.strip if path
+ }
+}) do |runner, opts, app|
+ # opts.on('-r redis-connection', "--redis redis-connection", "set the Redis connection string") {|redis_conf|
+ # runner.logger.info "Using Redis connection '#{redis_conf}'"
+ # Resque.redis = redis_conf
+ # }
+end
View
@@ -24,14 +24,21 @@ Gem::Specification.new do |s|
s.rubyforge_project = "qless"
- s.files = %w(README.md Gemfile Rakefile History.md) +
- Dir.glob("lib/**/*.rb") + Dir.glob("app/**/*")
+ s.files = %w(README.md Gemfile Rakefile History.md)
+ s.files += Dir.glob("lib/**/*.rb")
+ s.files += Dir.glob("app/**/*")
+ s.files += Dir.glob("bin/**/*")
+ s.executables = [ "qless-web" ]
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.require_paths = ["lib"]
- s.add_development_dependency "sinatra", "~> 1.3.2"
+ s.add_dependency "sinatra", "~> 1.3.2"
+ s.add_dependency "vegas" , "~> 0.1.11"
+ s.add_dependency "hiredis", "~> 0.4.5"
+ s.add_dependency "redis" , "~> 2.2.2"
+ s.add_dependency "json" , "~> 1.6.6"
+
s.add_development_dependency "rspec" , "~> 2.6"
- s.add_development_dependency "redis" , "~> 2.2.2"
s.add_development_dependency "rake" , "~> 0.9.2.2"
end

0 comments on commit a494bf5

Please sign in to comment.