Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
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
Guillaume Hervier
slapos-caddy
Commits
25ea4c7c
Commit
25ea4c7c
authored
Sep 25, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack-flask : now automaticaly download a given git repository
and start on it
parent
6458cb40
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
stack/flask/instance-flask.cfg
stack/flask/instance-flask.cfg
+17
-0
stack/flask/software.cfg
stack/flask/software.cfg
+9
-1
No files found.
stack/flask/instance-flask.cfg
View file @
25ea4c7c
...
...
@@ -12,6 +12,8 @@ parts =
symlinks
base-server
base-module
copy-git-project
git-change-origin
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
...
...
@@ -158,6 +160,21 @@ download-only = true
destination = $${directory:www}
mode = 0644
[copy-git-project]
recipe = slapos.recipe.build:gitclone
repository = ${git-user:location}
location = $${directory:www}
git-executable = ${git-user:git-executable}
[git-change-origin]
recipe = collective.recipe.cmd
on_install = true
on_update = false
cmds =
cd $${directory:www}
${git-user:git-executable} remote set-url origin ${git-user:repository}
# check promises
[nginx-promise]
recipe = slapos.cookbook:check_port_listening
...
...
stack/flask/software.cfg
View file @
25ea4c7c
...
...
@@ -6,12 +6,14 @@ extends =
../../component/nginx/buildout.cfg
../../component/dash/buildout.cfg
../../component/curl/buildout.cfg
../../component/git/buildout.cfg
parts =
slapos-cookbook
slapos-toolbox
eggs
template
git-user
nginx
nginx_template_launcher
template_nginx_conf
...
...
@@ -29,7 +31,7 @@ mode = 0644
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-flask.cfg
output = ${buildout:directory}/template-flask.cfg
md5sum = 9d38d13f46024625bb46a9e3c912dc17
#md5sum = 4ecf02b09c8e8a3440bd9eb9e846314f
mode = 0644
[template_nginx_conf]
...
...
@@ -66,6 +68,12 @@ download-only = true
filename = server.py
mode = 0644
[git-user]
recipe = slapos.recipe.build:gitclone
repository = ${code:git-repo}
git-executable = ${git:location}/bin/git
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[slapos-toolbox]
recipe = zc.recipe.egg
eggs = slapos.toolbox
...
...
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