Skip to content

Instantly share code, notes, and snippets.

@tyama
Created December 25, 2009 12:05
Show Gist options
  • Save tyama/263610 to your computer and use it in GitHub Desktop.
Save tyama/263610 to your computer and use it in GitHub Desktop.
# Step.1
http://dist.codehaus.org/grails/grails-bin-1.1.1.zip
#Grailsの設定
export GRAILS_HOME=/opt/grails-1.1.1
export PATH=$GRAILS_HOME/bin:$PATH
#appengine-javaの設定 http://code.google.com/appengine/downloads.html
export APPENGINE_HOME=/opt/appengine-java-sdk-1.3.0
# Step.2
grails create-app mygaeapp
cd mygaeapp
grails create-domain-class jp.grails.Todo
grails create-domain-class jp.grails.Comment
grails create-controller jp.grails.Todo
grails create-controller jp.grails.Comment
grails run-app
# Step.3
//GAE/J用プラグイン
grails install-plugin https://svn.codehaus.org/grails-plugins/grails-app-engine/tags/LATEST_RELEASE/grails-app-engine-0.8.5.zip
grails install-plugin https://svn.codehaus.org/grails-plugins/grails-gorm-jpa/tags/LATEST_RELEASE/grails-gorm-jpa-0.6.zip
# grails-app/conf/Config.groovy
# google.appengine.application="app engine でのアプリケーション名"
# Step.4
# ドメインクラス調整
http://gist.github.com/263511
# コードを生成
grails generate-all jp.grails.Todo
grails generate-all jp.grails.Comment
# 問題対策 scripts/_Events.groovy
http://gist.github.com/263509
# Step.5
# バージョンセットする
grails set-version 1
# 問題対策 scripts/_Events.groovy
http://gist.github.com/263509
# ローカル起動
grails app-engine run
# パッケージ
grails app-engine package
# デプロイ
$APPENGINE_HOME/bin/appcfg.sh update ./target/war
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment