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
dc8fe163
Commit
dc8fe163
authored
Oct 29, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #370 from edx/jarv/fix-shell-commands
Jarv/fix shell commands
parents
7bb460bc
83ab7175
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
playbooks/roles/discern/tasks/deploy.yml
+6
-4
playbooks/roles/edxapp/tasks/service_variant_config.yml
+1
-1
playbooks/roles/ora/tasks/ease.yml
+2
-1
No files found.
playbooks/roles/discern/tasks/deploy.yml
View file @
dc8fe163
...
...
@@ -56,13 +56,15 @@
-
deploy
-
name
:
discern | install ease python package
shell
:
command="{{discern_venv_dir}}/bin/activate; cd {{ discern_ease_code_dir }}; python setup.py install"
shell
:
>
{{ discern_venv_dir }}/bin/activate; cd {{ discern_ease_code_dir }}; python setup.py install
tags
:
-
deploy
#Needed for the ease package to work
-
name
:
discern | install nltk data using rendered shell script
shell
:
command="{{ discern_venv_dir }}/bin/python -m nltk.downloader -d {{ discern_nltk_data_dir }} all"
shell
:
>
{{ discern_venv_dir }}/bin/python -m nltk.downloader -d {{ discern_nltk_data_dir }} all
sudo_user
:
"
{{
discern_user
}}"
tags
:
-
deploy
...
...
@@ -71,7 +73,7 @@
#support virtualenvs as of this comment
-
name
:
discern | django syncdb migrate and collectstatic for discern
shell
:
>
command="{{ discern_venv_dir }}/bin/python {{discern_code_dir}}/manage.py {{item}} --noinput --settings={{discern_settings}} --pythonpath={{discern_code_dir}}"
{{ discern_venv_dir }}/bin/python {{discern_code_dir}}/manage.py {{item}} --noinput --settings={{discern_settings}} --pythonpath={{discern_code_dir}}
chdir={{ discern_code_dir }}
sudo_user
:
"
{{
discern_user
}}"
with_items
:
...
...
@@ -83,7 +85,7 @@
#Have this separate from the other three because it doesn't take the noinput flag
-
name
:
discern | django update_index for discern
shell
:
>
command="{{ discern_venv_dir}}/bin/python {{discern_code_dir}}/manage.py update_index --settings={{discern_settings}} --pythonpath={{discern_code_dir}}"
{{ discern_venv_dir}}/bin/python {{discern_code_dir}}/manage.py update_index --settings={{discern_settings}} --pythonpath={{discern_code_dir}}
chdir={{ discern_code_dir }}
sudo_user
:
"
{{
discern_user
}}"
tags
:
...
...
playbooks/roles/edxapp/tasks/service_variant_config.yml
View file @
dc8fe163
...
...
@@ -55,7 +55,7 @@
-
name
:
edxapp | gather {{ item }} static assets with rake
shell
:
>
command=
SERVICE_VARIANT={{ item }} rake {{ item }}:gather_assets:aws
SERVICE_VARIANT={{ item }} rake {{ item }}:gather_assets:aws
executable=/bin/bash
chdir={{ edxapp_code_dir }}
sudo_user
:
"
{{
edxapp_user
}}"
...
...
playbooks/roles/ora/tasks/ease.yml
View file @
dc8fe163
...
...
@@ -53,7 +53,8 @@
-
deploy
-
name
:
ora | install ease python package
shell
:
command="{{ora_ease_venv_dir}}/bin/activate; cd {{ora_ease_code_dir}}; python setup.py install"
shell
:
>
{{ ora_ease_venv_dir }}/bin/activate; cd {{ ora_ease_code_dir }}; python setup.py install
sudo_user
:
"
{{
ora_user
}}"
tags
:
-
deploy
...
...
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