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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?