Create a gist now

Instantly share code, notes, and snippets.

@tyama /J用
Created Dec 25, 2009

What would you like to do?
# 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