php #9
@ -4,7 +4,7 @@ maintainer_email 'you@example.com'
|
|||||||
license 'All Rights Reserved'
|
license 'All Rights Reserved'
|
||||||
description 'Installs/Configures t42-common'
|
description 'Installs/Configures t42-common'
|
||||||
long_description 'Installs/Configures t42-common'
|
long_description 'Installs/Configures t42-common'
|
||||||
version '0.1.3'
|
version '0.1.4'
|
||||||
chef_version '>= 13.0'
|
chef_version '>= 13.0'
|
||||||
|
|
||||||
depends 'nodejs'
|
depends 'nodejs'
|
||||||
|
6
recipes/php.rb
Normal file
6
recipes/php.rb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[
|
||||||
|
'php',
|
||||||
|
'libapache2-mod-php',
|
||||||
|
].each do |pkg|
|
||||||
|
apt_package pkg
|
||||||
|
end
|
@ -41,11 +41,13 @@
|
|||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
<% if node['web']['static'] %>
|
||||||
<% node['web']['static'].each do |static| -%>
|
<% node['web']['static'].each do |static| -%>
|
||||||
Alias <%= static['uri'] %> <%= node['working-dir'] %>/<%= static['path'] %>
|
Alias <%= static['uri'] %> <%= node['working-dir'] %>/<%= static['path'] %>
|
||||||
|
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
<% if node['web']['wsgi'] %>
|
<% if node['web']['wsgi'] %>
|
||||||
|
|
||||||
WSGIDaemonProcess <%= node['app']['name'] %> python-path=<%= node['python']['working-dir'] %> python-home=<%= node['python']['env_path'] %>
|
WSGIDaemonProcess <%= node['app']['name'] %> python-path=<%= node['python']['working-dir'] %> python-home=<%= node['python']['env_path'] %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user