Giter Site home page Giter Site logo

ruby-station's Introduction

RubyStation

Make desktop apps with web technology.

Website

http://yhara.github.com/ruby-station/

Tips

Autostart ruby-station on Mac OS X

Use launchd.

$ man launchd

~/Library/LaunchAgents/net.route477.ruby_station.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>net.route477.ruby_station</string>
        <key>OnDemand</key>
        <false/>
        <key>Porgram</key>
        <string>/opt/local/bin/ruby</string>
        <key>ProgramArguments</key>
        <array>
                <string>/Users/***your username***/.gem/ruby/1.8/bin/ruby-station</string>
        </array>
        <key>QueueDirectories</key>
        <array/>
        <key>RunAtLoad</key>
        <true/>
        <key>WatchPaths</key>
        <array/>
</dict>
</plist>

Restart (or '$ launchctl start net.route477.ruby_station') and ruby-station starts.

Contact

Yutaka HARA (yhara) http://github.com/yhara/ruby-station/

ruby-station's People

Contributors

yhara avatar

Stargazers

Angus H. avatar Keisuke KITA avatar Masao Ochi avatar Matt Murahashi Kenichi avatar KAYA Satoshi avatar okkez avatar Yōsuke Ushiki avatar Jits avatar Yuya Kato avatar yuiseki avatar OHASHI Hideya avatar koyachi avatar Narihiro Nakamura avatar Hirokazu YOSHIDA avatar  avatar Kazuhiro NISHIYAMA avatar ujihisa avatar TANAKA, Koutarou avatar Tomohiro Nishimura avatar Koichiro Ohba avatar Kaz avatar

Watchers

 avatar Kenichi Kamiya avatar  avatar  avatar

Forkers

kitak digideskio

ruby-station's Issues

digested port number

in model/application.rb:

:port => 30000 + rand(9999),

I think the port number should be fixed by name.
Maybe below code is better.

:port => 30000 + Digest::MD5.digest(name).unpack("s")[0] % 10000,

Internal Server Error is shown after shutdown of an app

'if is_running?(pid)' での判定後、プロセスが終了しているために起きるようです。

54 def self.kill(pid)
55 Process.kill("INT", pid)
56
57 if is_running?(pid)
58 sleep 2
59 Ramaze::Log.warn "Process #{pid} did not die, forcing it with -9"
60 Process.kill(9, pid)
61 end
62 end

W [2009-11-02 01:08:53 $17173] WARN | : Process 17246 did not die, forcing it with -9
E [2009-11-02 01:08:53 $17173] ERROR | : No such process (Errno::ESRCH)
/usr/lib/ruby19/gems/1.9.1/gems/ruby-station-0.1.5/util/servant.rb:60:in kill' /usr/lib/ruby19/gems/1.9.1/gems/ruby-station-0.1.5/util/servant.rb:60:inkill'
/usr/lib/ruby19/gems/1.9.1/gems/ruby-station-0.1.5/model/application.rb:64:in stop' /usr/lib/ruby19/gems/1.9.1/gems/ruby-station-0.1.5/controller/applications.rb:82:instop'

Use XDG standard

Instead of installing to ~/.ruby-station, use XDG standard. Basically ~/.local/ is the user equivalent of /usr/local/.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.