Commit eef510ec by Feanil Patel

Use npm config instead of editing rc files directly.

parent cfee3e4c
......@@ -474,6 +474,3 @@ edxapp_cms_variant: cms
# Worker Settings
worker_django_settings_module: 'aws'
# NPM rc file
edxapp_npmrc: "/usr/share/npm/npmrc"
......@@ -92,10 +92,15 @@
# Set the npm registry
- name: edxapp | Set the npm registry
lineinfile:
dest="{{ edxapp_npmrc }}"
regexp="registry = \"http://registry.npmjs.org/\""
line="registry = \"http://registry.npmjs.org/\""
shell:
npm config set registry 'http://registry.npmjs.org'
creates="{{ edxapp_app_dir }}/.npmrc"
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.
- 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