vegas

Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps.

  • Owner: quirkey/vegas
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

= vegas

http://code.quirkey.com/vegas

== DESCRIPTION:

Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps.

== FEATURES/PROBLEMS:

Currently, Vegas just includes a single class Vegas::Runner which wraps your Sinatra app to give it command line options, daemon-ization, PID/URL tracking, and browser launching.

Lets say you have a gem with a sinatra application. With Vegas you can create a bin that looks like

#!/usr/bin/env ruby

./bin/myapp

require File.expand_path(File.dirname(FILE) + "/../lib/myapp")
require 'vegas'

Vegas::Runner.new(Sinatra::Application, 'myapp')

See the website: http://code.quirkey.com/vegas for full usage/options.

=== WINDOWS:

Using vegas (and gems that depend on it) on Windows works but isn't 100% the same.
Daemon-ization and browser launching work, but you will see duplicate messages.
Some options might also be lost in the process. I suggest running Vegas apps
in windows with the -F (foreground) flag.

If you see a warning like:

expand_path': couldn't find HOME environment -- expanding ~/.vegas' (ArgumentError)

You have to set your HOME path:

c:> set HOME=%HOMEPATH%

== INSTALL:

sudo gem install vegas

== LICENSE:

MIT LICENSE, see LICENSE for details

Main metrics

Overview
Name With Ownerquirkey/vegas
Primary LanguageRuby
Program languageRuby (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2009-04-13 20:44:05
Pushed At2021-12-13 20:43:20
Last Commit At2012-01-23 00:03:25
Release Count16
Last Release Namev0.1.11 (Posted on )
First Release Namev0.0.1 (Posted on )
用户参与
Stargazers Count181
Watchers Count6
Fork Count24
Commits Count111
Has Issues Enabled
Issues Count14
Issue Open Count7
Pull Requests Count2
Pull Requests Open Count10
Pull Requests Close Count5
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private