Commit eef510ec by Feanil Patel

Use npm config instead of editing rc files directly.

parent cfee3e4c
...@@ -474,6 +474,3 @@ edxapp_cms_variant: cms ...@@ -474,6 +474,3 @@ edxapp_cms_variant: cms
# Worker Settings # Worker Settings
worker_django_settings_module: 'aws' worker_django_settings_module: 'aws'
# NPM rc file
edxapp_npmrc: "/usr/share/npm/npmrc"
...@@ -92,10 +92,15 @@ ...@@ -92,10 +92,15 @@
# Set the npm registry # Set the npm registry
- name: edxapp | Set the npm registry - name: edxapp | Set the npm registry
lineinfile: shell:
dest="{{ edxapp_npmrc }}" npm config set registry 'http://registry.npmjs.org'
regexp="registry = \"http://registry.npmjs.org/\"" creates="{{ edxapp_app_dir }}/.npmrc"
line="registry = \"http://registry.npmjs.org/\"" sudo_user: "{{ edxapp_user }}"
environment: "{{ edxapp_environment }}"
notify:
- "edxapp | restart edxapp"
- "edxapp | restart edxapp_workers"
tags: deploy
# Node play that need to be run after platform updates. # Node play that need to be run after platform updates.
- name: edxapp | Install edx-platform npm dependencies - name: edxapp | Install edx-platform npm dependencies
......
Markdown is supported
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