I hereby claim:
- I am bglusman on github.
- I am bglusman (https://keybase.io/bglusman) on keybase.
- I have a public key whose fingerprint is B70A CE87 8BFE 710A 8510 2E69 20FF F81D 502E 2484
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Last login: Fri Nov 26 22:59:27 on ttys001 | |
bglusman@Brian-Glusmans-MacBook:~$ curl https://github.com/atmos/cinderella/raw/master/bootstrap.sh \ | |
> -o - | sh | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
102 1333 102 1333 0 0 2979 0 --:--:-- --:--:-- --:--:-- 18774 | |
Ensuring we have the latest version of cinderella installed | |
A first time install takes about 45 minutes on a modern machine | |
Password: | |
Cinderella installed successfully |
Do not use rvm (or install and run from JRuby). The google-appengine gem must install into your system MRI. The appengine-sdk gem includes a complete Java app server. We bootstrap Java from MRI, then your app runs inside a servlet container (with access to all the APIs) using the version of JRuby installed into each app.
We assumed Rails 2 would never work without rubygems, and we committed to gem bunlder for JRuby on App Engine, so we were waiting for Rails 3. Fortunately, Takeru Sasaki was able to patch the Rails 2.3.x calls to rubygems, and now we have it working. Rails 2.3.x currently spins up several seconds faster than Rails 3, and just a few seconds behind Sinatra.
See the DataMapper version also: gist.github.com/671792
Do not use rvm (or install and run from JRuby). The google-appengine gem must install into your system MRI. The appengine-sdk gem includes a complete Java app server. We bootstrap Java from MRI, then your app runs inside a servlet container (with access to all the APIs) using the version of JRuby installed into each app.
We assumed Rails 2 would never work without rubygems, and we committed to gem bunlder for JRuby on App Engine, so we were waiting for Rails 3. Fortunately, Takeru Sasaki was able to patch the Rails 2.3.x calls to rubygems, and now we have it working. Rails 2.3.x currently spins up several seconds faster than Rails 3, and just a few seconds behind Sinatra.
See the TInyDS version also: gist.github.com/gists/269075
You can Rails 3 on App Engine, but it won’t be especially useful until bundler 10. You should try these instead:
Rails 2.3.5: DataMapper version: gist.github.com/268192
Rails 2.3.5: TinyDS version: gist.github.com/269075
The gems for the development environment include a pre-release appengine-tools gem that provides a pre-release version of jruby-rack.
## config/boot.rb | |
# Place this snippet right above the "Rails.boot!" command at the bottom of the file. | |
class Rails::Boot | |
def run | |
load_initializer | |
extend_environment | |
Rails::Initializer.run(:set_load_path) | |
end | |
def extend_environment |
#simple loop to toggle LED on and off forever | |
import time | |
import math | |
import ConfigParser | |
import logging | |
LEVELS = {'debug' : logging.DEBUG, | |
'info' : logging.INFO, | |
'warning' : logging.WARNING, |
module HashInit | |
#example usage: | |
# instead of this - | |
# | |
# class Message | |
# attr_reader :content, :sender, :subject | |
# attr_accessor :event | |
# def initialize(message) |
✈ > cap deploy | |
triggering load callbacks | |
* executing `qa' | |
triggering start callbacks for `deploy' | |
* executing `multistage:ensure' | |
* executing `deploy' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' | |
executing locally: "git ls-remote rails@qa.xyz.org:/git/xyz.git qa" |