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
368b717b
Commit
368b717b
authored
Jul 28, 2015
by
Fred Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2149 from mitodl/bdero/requirements-backwards-compatibility
Skip over updating requirement files that are missing
parents
bc696edb
73f12e66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
playbooks/roles/edxapp/defaults/main.yml
+1
-0
playbooks/roles/edxapp/tasks/deploy.yml
+8
-1
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
368b717b
...
...
@@ -554,6 +554,7 @@ edxapp_aa_command: "{% if EDXAPP_SANDBOX_ENFORCE %}aa-enforce{% else %}aa-compla
# all edxapp requirements files
edxapp_requirements_with_github_urls
:
-
"
{{
pre_requirements_file
}}"
-
"
{{
post_requirements_file
}}"
-
"
{{
base_requirements_file
}}"
-
"
{{
paver_requirements_file
}}"
-
"
{{
github_requirements_file
}}"
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
368b717b
...
...
@@ -60,12 +60,19 @@
GIT_SSH
:
"
{{
edxapp_git_ssh
}}"
register
:
edxapp_theme_checkout
-
name
:
Stat each requirements file to ensure it exists
stat
:
path="{{ item }}"
with_items
:
"
{{
edxapp_requirements_with_github_urls
}}"
register
:
requirement_file_stats
# Substitute github mirror in all requirements files
# This is run on every single deploy
-
name
:
Updating requirement files for git mirror
command
:
|
/bin/sed -i -e 's/github\.com/{{ COMMON_GIT_MIRROR }}/g' {{
" ".join(edxapp_requirements_with_github_urls)
}}
/bin/sed -i -e 's/github\.com/{{ COMMON_GIT_MIRROR }}/g' {{
item.item
}}
sudo_user
:
"
{{
edxapp_user
}}"
when
:
item.stat.exists
with_items
:
"
{{
requirement_file_stats.results
}}"
# Ruby plays that need to be run after platform updates.
-
name
:
gem install bundler
...
...
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