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
OpenEdx
configuration
Commits
d07e6fca
Commit
d07e6fca
authored
Jul 14, 2017
by
Jillian Vogel
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add optional task to rebuild the forum elasticsearch index
set FORUM_REBUILD_INDEX to run the rebuild_index rake task.
parent
69662bea
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
CHANGELOG.md
+3
-0
playbooks/roles/forum/defaults/main.yml
+3
-0
playbooks/roles/forum/tasks/deploy.yml
+11
-0
No files found.
CHANGELOG.md
View file @
d07e6fca
-
Role: forum
-
Added
`FORUM_REBUILD_INDEX`
to rebuild the ElasticSearch index from the database, when enabled. Default:
`False`
.
-
Role: nginx
-
Added
`NGINX_EDXAPP_CMS_APP_EXTRA`
, which makes it possible to add custom settings to the site configuration for Studio.
-
Added
`NGINX_EDXAPP_LMS_APP_EXTRA`
, which makes it possible to add custom settings to the site configuration for the LMS.
...
...
playbooks/roles/forum/defaults/main.yml
View file @
d07e6fca
...
...
@@ -45,6 +45,9 @@ FORUM_USE_TCP: false
# wait this long before attempting to restart it
FORUM_RESTART_DELAY
:
60
# Set to rebuild the forum ElasticSearch index from the database.
FORUM_REBUILD_INDEX
:
false
forum_environment
:
RBENV_ROOT
:
"
{{
forum_rbenv_root
}}"
GEM_HOME
:
"
{{
forum_gem_root
}}"
...
...
playbooks/roles/forum/tasks/deploy.yml
View file @
d07e6fca
...
...
@@ -71,6 +71,17 @@
-
migrate
-
migrate:db
-
name
:
rebuild elasticsearch indexes
command
:
"
{{
forum_code_dir
}}/bin/rake
search:rebuild_index"
args
:
chdir
:
"
{{
forum_code_dir
}}"
become_user
:
"
{{
forum_user
}}"
environment
:
"
{{
forum_environment
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes" and FORUM_REBUILD_INDEX|bool
tags
:
-
migrate
-
migrate:db
# call supervisorctl update. this reloads
# the supervisorctl config and restarts
# the services if any of the configurations
...
...
XuYS
@xys
mentioned in commit
4e839bb3
Feb 06, 2018
mentioned in commit
4e839bb3
mentioned in commit 4e839bb38cf8e3c1cfb0c049a7ee443d9666f862
Toggle commit list
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