Commit f7ada57f authored by Nicolas Wavrant's avatar Nicolas Wavrant

stack/flask : minimum flask application now downloaded from a git repo

parent 3b67f66b
...@@ -10,8 +10,6 @@ parts = ...@@ -10,8 +10,6 @@ parts =
nginx-promise nginx-promise
flask-promise flask-promise
symlinks symlinks
base-server
base-module
copy-git-project copy-git-project
git-change-origin git-change-origin
...@@ -143,23 +141,6 @@ wrapper = $${directory:services}/nginx-frontend ...@@ -143,23 +141,6 @@ wrapper = $${directory:services}/nginx-frontend
# Put domain name # Put domain name
name = example.com name = example.com
#copy in var/www the minimum files to create a flask application
[base-server]
recipe = hexagonit.recipe.download
url = ${server_base_py:location}/${server_base_py:filename}
md5sum = a2bf143a482d46dee421a24189a4b069
download-only = true
destination = $${directory:www}
mode = 0644
[base-module]
recipe = hexagonit.recipe.download
url = ${module_base_py:location}/${module_base_py:filename}
md5sum = 5ad39f196605b062e94b738da03fe91c
download-only = true
destination = $${directory:www}
mode = 0644
[copy-git-project] [copy-git-project]
recipe = slapos.recipe.build:gitclone recipe = slapos.recipe.build:gitclone
repository = ${git-user:location} repository = ${git-user:location}
......
...@@ -17,8 +17,6 @@ parts = ...@@ -17,8 +17,6 @@ parts =
nginx nginx
nginx_template_launcher nginx_template_launcher
template_nginx_conf template_nginx_conf
module_base_py
server_base_py
[template] [template]
recipe = slapos.recipe.template recipe = slapos.recipe.template
...@@ -31,7 +29,7 @@ mode = 0644 ...@@ -31,7 +29,7 @@ mode = 0644
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-flask.cfg url = ${:_profile_base_location_}/instance-flask.cfg
output = ${buildout:directory}/template-flask.cfg output = ${buildout:directory}/template-flask.cfg
md5sum = 6aa3a502443034806be7024f1313d3c2 md5sum = dd9a27e95cebde0e1f6e1d1c6b25722b
mode = 0644 mode = 0644
[template_nginx_conf] [template_nginx_conf]
...@@ -50,24 +48,6 @@ filename = launcher-nginx.in ...@@ -50,24 +48,6 @@ filename = launcher-nginx.in
mode = 0644 mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
[module_base_py]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
md5sum = 5ad39f196605b062e94b738da03fe91c
location = ${buildout:parts-directory}/${:_buildout_section_name_}
download-only = true
filename = __init__.py
mode = 0644
[server_base_py]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
md5sum = a2bf143a482d46dee421a24189a4b069
location = ${buildout:parts-directory}/${:_buildout_section_name_}
download-only = true
filename = server.py
mode = 0644
[git-user] [git-user]
recipe = slapos.recipe.build:gitclone recipe = slapos.recipe.build:gitclone
repository = http://github.com/Sebatyne/FlaskMinimum.git repository = http://github.com/Sebatyne/FlaskMinimum.git
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment