MorphDeploy Plugin
Dependency :
compile ":morph-deploy:0.1"
Summary
Description
Mor.ph Deploy Plugin
This plugin prepares your WAR file for deployment to the Mor.ph scalable deployment platform service.All you do is create a Mor.ph account, download the JAR + properties file from their site into the root directory of your grails project. Then install this plugin:grails install-plugin morph-deployOnce installed this will take care of the following for you:- The JNDI datasource will be set up in your web.xml
- The JNDI mail session will be set up in your web.xml, and the mailsession and mailsender beans configured in resources.groovy (not tested use of this in app yet!)
- The JDBC 2.0 extensions JAR will be REMOVED from your WAR when you run "grails war". This is required for correct Mor.ph deployment
- In DataSource.groovy in the "production" environment, set it up like this:
production {
dataSource {
driverClassName = 'com.mysql.jdbc.Driver'
dbCreate = "update"
jndiName = "java:comp/env/jdbc/morph-ds"
dialect = 'org.hibernate.dialect.MySQLDialect'
}
}