Because I'm a fan of Grails, I'm of course interested in what's Google's doing with its Google App Engine.
Like all new technologies, where is a period during which making development for professional issues could be a little complex 'Ooooo no, again an unexpected exception and a whole day lost'.
What's why before starting a real application, i would like to test several configurations and options to make my own opinion.
Before started where are one Big Question: Java or Python?
I know Java and more specifically Grails. Spring source claim that Grails 1.1.1 is ready for Google so OK let's start with Grails.
First test: does it work?
I follow the tutorial of Guillame Laforge but, because I like to play, I create a class named Item instead of demo.Book. First fail, the plugin can't manage a class without any package ... grrrrr, my first whole day lost.
I try to upload the application, it's not clear if we have to use the plugin command or the shell one. If I well understand, we have to start first the command and again the plugin works.
I my environment, the plugin doesn't work (even after using the shell command), I also use the shell command to deploy my war.
Of course this is a little tricky to set the proxy, we have to add the following line to the command appcfg.cmd:
Then you can upload your application by using appcfg update target/war from the root of your grails project (the script asks for your mail but your account login is sufficient) .
Once of the most stupid things which makes me waste time if that the grails command (grails app-engine upload) asks for the google account login and password. And guess what?, you have to tape return when the script asks for your mail before entering it.
It seems this is a bug in the ant script (see JIRA)
Little stress - The 1000 files limit
I read that app-engine doesn't accept more than 1000 files. The problem is, that as soon as you use a javascript plugin (like richui) with your application, you get 1000 files without doing anything more. I've to test that point.
Next time, Two other questions: JPA or JDO and Grails 1.1.1 or 1.2mx
Like all new technologies, where is a period during which making development for professional issues could be a little complex 'Ooooo no, again an unexpected exception and a whole day lost'.
What's why before starting a real application, i would like to test several configurations and options to make my own opinion.
Before started where are one Big Question: Java or Python?
I know Java and more specifically Grails. Spring source claim that Grails 1.1.1 is ready for Google so OK let's start with Grails.
First test: does it work?
I follow the tutorial of Guillame Laforge but, because I like to play, I create a class named Item instead of demo.Book. First fail, the plugin can't manage a class without any package ... grrrrr, my first whole day lost.
I try to upload the application, it's not clear if we have to use the plugin command or the shell one. If I well understand, we have to start first the command and again the plugin works.
I my environment, the plugin doesn't work (even after using the shell command), I also use the shell command to deploy my war.
Of course this is a little tricky to set the proxy, we have to add the following line to the command appcfg.cmd:
java -Dhttp.proxySet=true -Dhttp.proxyHost=proxy -Dhttp.proxyPort=1111 -cp "%~dp0\..\lib\appengine-tools-api.jar" com.google.appengine.tools.admin.AppCfg %*
Then you can upload your application by using appcfg update target/war from the root of your grails project (the script asks for your mail but your account login is sufficient) .
Once of the most stupid things which makes me waste time if that the grails command (grails app-engine upload) asks for the google account login and password. And guess what?, you have to tape return when the script asks for your mail before entering it.
It seems this is a bug in the ant script (see JIRA)
Little stress - The 1000 files limit
I read that app-engine doesn't accept more than 1000 files. The problem is, that as soon as you use a javascript plugin (like richui) with your application, you get 1000 files without doing anything more. I've to test that point.
Next time, Two other questions: JPA or JDO and Grails 1.1.1 or 1.2mx
Aucun commentaire:
Enregistrer un commentaire