Unverified Commit 4bacbc19 authored by Keshav Prasad's avatar Keshav Prasad Committed by GitHub
Browse files

Merge pull request #529 from MasterAlt/playerCDN

Feature #000 cdn: error handling if manual changes done in the server
parents f4e45b9b d042acc3
No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
......@@ -46,8 +46,10 @@
- name: Create the new index_cdn.ejs file as a config
shell: "docker config create index_cdn.ejs /home/deployer/config/index_cdn.ejs"
when: indexFileChange.changed and sunbird_portal_cdn_url is not none
when: cdn_file_path is not none
register: newIndexFile
ignore_errors: yes
- name: Deploy Player with updated player config
shell: docker service update --config-add source=index_cdn.ejs,target=/home/sunbird/app_dist/dist/index_cdn.ejs player_player
when: sunbird_portal_cdn_url is not none and cdn_file_path is not none
when: sunbird_portal_cdn_url is not none and cdn_file_path is not none or newIndexFile.rc == 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment