Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.1-RC2
-
Fix Version/s: 1.1
-
Component/s: Configuration
-
Labels:None
-
Environment:Windows XP SP2
JDK 1.6.0_05
MySQL 5
Tomcat 6.0.14 / 6.0.18
Description
1. given a DataSoruce.groovy with 2 DB configuration.
environments {
development {
dataSource
}
production {
dataSource
}
}
2. grails war mywar.war
3. add -Dgrails.env=development properties in Tomcat
(or set JAVA_OPTS=-Dgrails.env=development under OS environment.)
4. deploy mywar.war into tomcat
5. start tomcat
6. application start fail. (it seems ignore -Dgrails.env=development )
7. shutdown tomcat
8. grails -Dgrails.env=development war mywar.war
9. re-deploy mywar.war
10. start tomcat
11. application startup.
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits