vegas

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

  • 所有者: quirkey/vegas
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

= 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

主要指标

概览
名称与所有者quirkey/vegas
主编程语言Ruby
编程语言Ruby (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2009-04-13 20:44:05
推送于2021-12-13 20:43:20
最后一次提交2012-01-23 00:03:25
发布数16
最新版本名称v0.1.11 (发布于 )
第一版名称v0.0.1 (发布于 )
用户参与
星数181
关注者数6
派生数24
提交数111
已启用问题?
问题数14
打开的问题数7
拉请求数2
打开的拉请求数10
关闭的拉请求数5
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?