Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
d35c9eb0
Commit
d35c9eb0
authored
Mar 31, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #958 from edx/feanil/paver
Add a task to install paver requirements.
parents
ca3db6bc
ccaa284d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
playbooks/roles/edxapp/defaults/main.yml
+3
-0
playbooks/roles/edxapp/tasks/deploy.yml
+14
-0
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
d35c9eb0
...
...
@@ -247,6 +247,7 @@ edxapp_chksum_req_files:
-
"
{{
pre_requirements_file
}}"
-
"
{{
post_requirements_file
}}"
-
"
{{
base_requirements_file
}}"
-
"
{{
paver_requirements_file
}}"
-
"
{{
sandbox_post_requirements
}}"
-
"
{{
sandbox_base_requirements
}}"
...
...
@@ -255,6 +256,7 @@ edxapp_all_req_files:
-
"
{{
pre_requirements_file
}}"
-
"
{{
post_requirements_file
}}"
-
"
{{
base_requirements_file
}}"
-
"
{{
paver_requirements_file
}}"
-
"
{{
repo_requirements_file
}}"
-
"
{{
github_requirements_file
}}"
-
"
{{
sandbox_post_requirements
}}"
...
...
@@ -516,6 +518,7 @@ local_requirements_file: "{{ edxapp_code_dir }}/requirements/edx/local.txt"
pre_requirements_file
:
"
{{
edxapp_code_dir
}}/requirements/edx/pre.txt"
post_requirements_file
:
"
{{
edxapp_code_dir
}}/requirements/edx/post.txt"
base_requirements_file
:
"
{{
edxapp_code_dir
}}/requirements/edx/base.txt"
paver_requirements_file
:
"
{{
edxapp_code_dir
}}/requirements/edx/paver.txt"
github_requirements_file
:
"
{{
edxapp_code_dir
}}/requirements/edx/github.txt"
repo_requirements_file
:
"
{{
edxapp_code_dir
}}/requirements/edx/repo.txt"
private_requirements_file
:
"
{{
edxapp_code_dir
}}/requirements/edx/edx-private.txt"
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
d35c9eb0
...
...
@@ -165,6 +165,20 @@
-
"
restart
edxapp_workers"
when
:
not inst.stat.exists or new.stat.md5 != inst.stat.md5
# Install the python paver requirements into {{ edxapp_venv_dir }}
-
name
:
install python paver-requirements
pip
:
>
requirements="{{paver_requirements_file}}"
virtualenv="{{edxapp_venv_dir}}"
state=present
extra_args="-i {{ edxapp_pypi_local_mirror }}"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
notify
:
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
when
:
not inst.stat.exists or new.stat.md5 != inst.stat.md5
# Install the final python modules into {{ edxapp_venv_dir }}
-
name
:
install python post-post requirements
# Need to use shell rather than pip so that we can maintain the context of our current working directory; some
...
...
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