AJAX & Prototype Page 2 - Installing Google Web Toolkit: Introducing the Google App Engine |
Now that the preparation is complete, you are ready to upload your GWT project to Google Apps engine. So what do you need to upload? You will need to upload only the contents of your war directory, which are as follows:
Go through the checklist below before uploading, to make sure you have the following files:
To upload the files, follow the steps below: Step 1. Open the Linux terminal. Step 2. You need to change the directory to your Ubuntu Desktop first, and then go inside the “bin” folder of appengine-java-sdk-1.3.7 directory. Commands: codex-m@codex-m-desktop:~$ cd Desktop The purpose of getting into the bin directory in appengine-java-sdk-1.3.7 is to execute the script appcfg.sh. This script will let you upload files from the local server to Google Apps engine server. The actual syntax of the command is (take note of the dot before the appcfg.sh): ./appcfg.sh update [linux path to your war directory] For example, if your Linux path to your war directory is : /home/codex-m/Desktop/gwt-2.0.4/MyWebApp/war then the command will be: ./appcfg.sh update /home/codex-m/Desktop/gwt-2.0.4/MyWebApp/war Using the Linux prompt (in Terminal, bolded is the actual command to be executed): codex-m@codex-m-desktop:~/Desktop/appengine-java-sdk-1.3.7/bin$ ./appcfg.sh update /home/codex-m/Desktop/gwt-2.0.4/MyWebApp/war Press the enter key and it will start uploading the files. It will also show the progress of the uploading process: Reading application configuration data... IMPORTANT: Be prepared to enter your Google account login information (in e-mail and password); it is needed to proceed with the uploading, as shown above. The uploading process might take some time, so you need to wait until it is successfully uploaded and you see the text “Update completed successfully.” Now launch your browser, and then browse to the sub-domain URL in the appspot.com domain where you can see your application -- e.g. http://mygooglewebapps.appspot.com Example:
blog comments powered by Disqus |
|
|
|
|
|
|
|