Hello, Merbists!
Today, I explain how to develop Merb apps that runs on GAE/J environmen
First of all, here is whole source code of an example app. Please check it out.
After checking it out,
you must edit appengine-
1 MERB_ROOT%jruby -S warble war
It generates files under tmp/war.
So far, you are ready to deploy this app to GAE/J Of course, you need an account of GAE/J to do it. Please get it in advance :-)
Let us go to deploy by this command.
1 MERB_ROOT%appcfg.sh update -e {youraccoun t@gmail.com} tmp/war
This process takes a time for the first time. If the log didn't say any errors, you got success!
Now your first Merb app on GAE/J is here at
http://{your app name}.appspot.c
Congrats!
Further improvemen
APPENDIX
All required gems are being packed into jar file located at lib/merb.j
- unpacking it
- add gems
- and repack it
Enjoy!
Thanks for your work !
I uploaded it onto GAE and (of course ;-) it's working fine. Just a thing: the command should be "MERB_ROOT% appcfg.sh -e {youraccount@gmail.com} update tmp/war"
I did not use warbler since it is asking a lot of gems installed... I just made a WEB-INF directory where I put all the files and directory.
I'll try something with datamapper after sleeping (it's 01:52 right now ;-)) Thanks again !
I'm glad to hear that :-)