tailieunhanh - Apress bắt đầu ứng dụng với java google - p 7

Google App Engine phóng cho Mac Bạn không cần phải sử dụng các bệ phóng để bắt đầu dự án phát triển của bạn trên máy chủ phát triển địa phương. Nếu bạn đang sử dụng Eclipse và Eclipse Plugin Google, bạn có thể khởi chạy ứng dụng của bạn tại địa phương bằng cách chọn Debug Như | CHAPTER 3 GETTING STARTED WITH GOOGLE APP ENGINE FOR JAVA Note Google Suggest AdSense for Content and Orkut are among the many products created through the 20 percent time perk. Figure 3-8. The Google App Engine launcher for Mac You don t have to use the launcher to start your development projects on the local development server. If you re using Eclipse and the Google Eclipse Plugin you can launch your application locally by selecting Debug As Web Application from the Run menu. For more control or to script the launch of your applications locally you can launch the development web server from the command line. You should execute this command from the SDK s appengine-java-sdk bin directory. If you are using Windows run the following command appengine-java-sdk bin options war-location If you are using Mac OS X or Linux run the following command appengine-java-sdk bin options war-location 38 CHAPTER 3 GETTING STARTED WITH GOOGLE APP ENGINE FOR JAVA These commands are OS-specific wrapper scripts that run the Java class . in appengine-java-sdk lib . For details on the available command options reference the online documentation. Note To stop the development server press Control C on Windows Mac or Linux . Deploying Your Sample Application It s time to deploy your application to App Engine where you can browse it publicly and share it with the world. There s a small Jet Engine icon in your Eclipse tool bar that was created when you installed the Google Eclipse Plugin. Click that icon while making sure that your ChapterThree sample application is selected in the Package Explorer. It s important to note that at the time of this writing you get 10 applications per account. You may consider choosing generic application IDs for the examples in this book and reusing them for each chapter. You ll be presented with a Deploy Project to Google App Engine dialog like the one shown in .