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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lisa Casino
slapos
Commits
428b5b3b
Commit
428b5b3b
authored
Jun 23, 2021
by
Lisa Casino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/html5as-base: add index.html template
parent
4e89cd95
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
5 deletions
+25
-5
software/html5as-base/instance.cfg.in
software/html5as-base/instance.cfg.in
+2
-1
software/html5as-base/instance_html5as.cfg.in
software/html5as-base/instance_html5as.cfg.in
+9
-2
software/html5as-base/software.cfg
software/html5as-base/software.cfg
+10
-2
software/html5as-base/templates/index.html.in
software/html5as-base/templates/index.html.in
+4
-0
No files found.
software/html5as-base/instance.cfg.in
View file @
428b5b3b
...
@@ -11,7 +11,8 @@ nginx_location = {{ nginx_location }}
...
@@ -11,7 +11,8 @@ nginx_location = {{ nginx_location }}
dash_location = {{ dash_location }}
dash_location = {{ dash_location }}
template_nginx_conf = {{ template_nginx_conf_target }}
template_nginx_conf = {{ template_nginx_conf_target }}
template_mime_types = {{ template_mime_types_target }}
template_mime_types = {{ template_mime_types_target }}
template_launcher = {{ template_launcher_target }}
template_launcher = {{ template_launcher_target }}
template_index_html = {{ template_index_html_target }}
[instance-html5as]
[instance-html5as]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
...
software/html5as-base/instance_html5as.cfg.in
View file @
428b5b3b
...
@@ -124,10 +124,17 @@ mode = 700
...
@@ -124,10 +124,17 @@ mode = 700
context =
context =
section param_html5as html5as
section param_html5as html5as
# Simple command to put content in the docroot
[downloader]
[downloader]
recipe = plone.recipe.command
recipe = plone.recipe.command
command = rm -r ${html5as:docroot}/*; echo "Hello World!" > ${html5as:docroot}/index.html
command = rm -r ${html5as:docroot}/*; cp ${default_index_html:rendered} ${html5as:docroot}/
[default_index_html]
recipe = slapos.recipe.template:jinja2
template = {{ parameter_list['template_index_html'] }}
rendered = ${directory:srv}/index.html
title = {{ parameter_dict['title'] }}
context =
key title :title
# Publish nginx address
# Publish nginx address
[publish-connection-information]
[publish-connection-information]
...
...
software/html5as-base/software.cfg
View file @
428b5b3b
...
@@ -27,7 +27,7 @@ recipe = slapos.recipe.template:jinja2
...
@@ -27,7 +27,7 @@ recipe = slapos.recipe.template:jinja2
rendered = ${buildout:directory}/template.cfg
rendered = ${buildout:directory}/template.cfg
template = ${:_profile_base_location_}/${:filename}
template = ${:_profile_base_location_}/${:filename}
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
d6627ddb46e3a60e0ee246ed5a5d5d72
md5sum =
2c36a705be4df9222823af570b29b4c3
mode = 0644
mode = 0644
context =
context =
section buildout buildout
section buildout buildout
...
@@ -37,13 +37,14 @@ context =
...
@@ -37,13 +37,14 @@ context =
key template_mime_types_target template_mime_types:target
key template_mime_types_target template_mime_types:target
key template_launcher_target template_launcher:target
key template_launcher_target template_launcher:target
key template_instance_html5as_target instance_html5as:target
key template_instance_html5as_target instance_html5as:target
key template_index_html_target template_index_html:target
# Download instance_html5as.cfg.in
# Download instance_html5as.cfg.in
[instance_html5as]
[instance_html5as]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}
url = ${:_profile_base_location_}/${:_update_hash_filename_}
_update_hash_filename_ = instance_html5as.cfg.in
_update_hash_filename_ = instance_html5as.cfg.in
md5sum =
e51dbd14717a9499fba02e338fc3451d
md5sum =
cc9270fa52d55143d4db7f38e38bbd37
mode = 0644
mode = 0644
[template_nginx_conf]
[template_nginx_conf]
...
@@ -67,6 +68,13 @@ _update_hash_filename_ = templates/mime_types.in
...
@@ -67,6 +68,13 @@ _update_hash_filename_ = templates/mime_types.in
md5sum = 4ef94a7b458d885cd79ba0b930a5727e
md5sum = 4ef94a7b458d885cd79ba0b930a5727e
mode = 0644
mode = 0644
[template_index_html]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}
_update_hash_filename_ = templates/index.html.in
md5sum = d57cb01df5941e139b02a2f7bdabcdc8
mode = 0644
[extra-eggs]
[extra-eggs]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
eggs =
eggs =
...
...
software/html5as-base/templates/index.html.in
0 → 100644
View file @
428b5b3b
{% if title %}
<h1>{{ title }}</h1>
{% endif %}
<p>Hello World</p>
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