seven1m / sinatra-appengine-example
- Source
- Commits
- Network (5)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon Apr 20 14:42:11 -0700 2009 | |
| |
Rakefile | Wed Apr 22 09:35:27 -0700 2009 | |
| |
app.rb | Mon Apr 20 14:42:11 -0700 2009 | |
| |
appengine-web.xml | Mon Apr 20 14:42:11 -0700 2009 | |
| |
config.ru | Wed Apr 22 09:35:27 -0700 2009 | |
| |
config/ | Mon Apr 20 14:42:11 -0700 2009 | |
| |
public/ | Mon Apr 20 14:42:11 -0700 2009 | |
| |
readme | Wed Apr 22 09:35:27 -0700 2009 | |
| |
views/ | Mon Apr 20 14:42:11 -0700 2009 |
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
