You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,6 @@ NOTICE: the `application` cookbook was designed around frameworks running on int
38
38
- database\_master\_role: if a role name is provided, a Chef search will be run to find a node with than role in the same environment as the current role. If a node is found, its IP address will be used when rendering the context file, but see the "Database block parameters" section below
39
39
- context\_template: the name of template that will be rendered to create the context file; if specified it will be looked up in the application cookbook. Defaults to "context.xml.erb" from this cookbook
40
40
- database: a block containing additional parameters for configuring the database connection (see below)
41
-
- strategy: if specified, allows overriding the default :java_remote_file with an alternate deploy strategy. use :java_local_file for files fetched externally, available on the filesystem
42
41
43
42
# Database block parameters
44
43
@@ -64,6 +63,9 @@ The `tomcat` sub-resource LWRP configures Tomcat to run the application by creat
64
63
Attributes
65
64
==========
66
65
66
+
strategy: required to be one of
67
+
:java_remote_file allows downloading from a remote http url
68
+
:java_local_file allows using a package on the filesystem
67
69
path: the target location for the application distribution. This should be outside of the tomcat deployment tree.
68
70
repository:
69
71
- java_remote_file uses repository as the remote URL
@@ -80,6 +82,7 @@ A sample application that needs a database connection:
80
82
path "/usr/local/my-app"
81
83
repository "..."
82
84
revision "..."
85
+
strategy :java_local_file
83
86
84
87
java_webapp do
85
88
database_master_role "database_master"
@@ -107,6 +110,7 @@ context file for other reasons), you can specify your own template:
0 commit comments