Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vincent Bechu
slapos
Commits
51498e48
Commit
51498e48
authored
Jun 01, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to use LAMP applications without configuration
parent
b893666f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
19 deletions
+29
-19
slapos/recipe/apachephp/__init__.py
slapos/recipe/apachephp/__init__.py
+21
-19
stack/lamp/buildout.cfg
stack/lamp/buildout.cfg
+8
-0
No files found.
slapos/recipe/apachephp/__init__.py
View file @
51498e48
...
@@ -85,6 +85,8 @@ class Recipe(GenericBaseRecipe):
...
@@ -85,6 +85,8 @@ class Recipe(GenericBaseRecipe):
with
open
(
secret_key_filename
,
'r'
)
as
secret_key_file
:
with
open
(
secret_key_filename
,
'r'
)
as
secret_key_file
:
secret_key
=
secret_key_file
.
read
()
secret_key
=
secret_key_file
.
read
()
# Generate application configuration file
if
self
.
options
.
get
(
'template'
):
application_conf
=
dict
(
mysql_database
=
self
.
options
[
'mysql-database'
],
application_conf
=
dict
(
mysql_database
=
self
.
options
[
'mysql-database'
],
mysql_user
=
self
.
options
[
'mysql-username'
],
mysql_user
=
self
.
options
[
'mysql-username'
],
mysql_password
=
self
.
options
[
'mysql-password'
],
mysql_password
=
self
.
options
[
'mysql-password'
],
...
...
stack/lamp/buildout.cfg
View file @
51498e48
...
@@ -116,6 +116,14 @@ output = ${buildout:directory}/template-pull-backup.cfg
...
@@ -116,6 +116,14 @@ output = ${buildout:directory}/template-pull-backup.cfg
md5sum = 9aab30ba5aa23a37d4b507e7c414be00
md5sum = 9aab30ba5aa23a37d4b507e7c414be00
mode = 0644
mode = 0644
# Dummy parts in case no application configuration file is needed
[application-template]
filename =
location =
[application-configuration]
location =
[eggs]
[eggs]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
eggs =
eggs =
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment