public
Description: Example of a Sinatra app for Google AppEngine (JRuby) from http://blog.bigcurl.de/2009/04/running-sinatra-apps-on-google.html
Homepage:
Clone URL: git://github.com/seven1m/sinatra-appengine-example.git
name age message
file .gitignore Mon Apr 20 14:42:11 -0700 2009 Initial import. [seven1m]
file Rakefile Wed Apr 22 09:35:27 -0700 2009 Moved split-jruby.sh into a Rakefile to make it... [spraints]
file app.rb Mon Apr 20 14:42:11 -0700 2009 Initial import. [seven1m]
file appengine-web.xml Mon Apr 20 14:42:11 -0700 2009 Initial import. [seven1m]
file config.ru Wed Apr 22 09:35:27 -0700 2009 Moved split-jruby.sh into a Rakefile to make it... [spraints]
directory config/ Mon Apr 20 14:42:11 -0700 2009 Initial import. [seven1m]
directory public/ Mon Apr 20 14:42:11 -0700 2009 Initial import. [seven1m]
file readme Wed Apr 22 09:35:27 -0700 2009 Moved split-jruby.sh into a Rakefile to make it... [spraints]
directory views/ Mon Apr 20 14:42:11 -0700 2009 Initial import. [seven1m]
readme
# install jruby
git clone git://github.com/jruby/jruby.git
cd jruby
ant
ant jar-complete
cd ..
mv jruby /usr/local/
sudo ln -s /usr/local/jruby/bin/jruby /usr/local/bin/jruby
jruby -v
jruby -S gem install rake sinatra warbler haml

# get jruby-rack
git clone git://github.com/nicksieger/jruby-rack.git
cd jruby-rack
jruby -S rake SKIP_SPECS=true
cd ..

# get appengine-java-sdk
# http://code.google.com/appengine/downloads.html

# create sinatra app
git clone git://github.com/seven1m/sinatra-appengine-example.git myapp
cd !$
jruby -S rake jrubyjars JRUBY_COMPLETE=/usr/local/jruby/lib/jruby-complete.jar
cp -r ../jruby-rack/target/jruby-rack-*.jar lib
cp ../appengine-java-sdk-1.2.0/lib/user/appengine-api-1.0-sdk-1.2.0.jar lib/
jruby -S warble

# to test
../appengine-java-sdk-1.2.0/bin/dev_appserver.sh tmp/war

# to push to Google AppEngine
# copy your application id into appengine-web.xml file and replace YOUR-APPLICATION-ID
../appengine-java-sdk-1.2.0/bin/appcfg.sh update tmp/war
# now visit your app's home on the web!

# change version if you want to push a new "version"
# inside appengine-web.xml file