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
7f537c11
Commit
7f537c11
authored
Aug 13, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing perm issue with npm registry
parent
df50f173
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
playbooks/roles/edxapp/tasks/deploy.yml
+12
-2
No files found.
playbooks/roles/edxapp/tasks/deploy.yml
View file @
7f537c11
...
...
@@ -111,16 +111,26 @@
-
"
restart
edxapp_workers"
# Set the npm registry
# This needs to be done as root since npm is weird about
# chown - https://github.com/npm/npm/issues/3565
-
name
:
Set the npm registry
shell
:
npm config set registry '{{ COMMON_NPM_MIRROR_URL }}'
creates="{{ edxapp_app_dir }}/.npmrc"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
notify
:
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
# Set the npm registry permissions
-
name
:
Set the npm registry permissions
file
:
path="{{ edxapp_app_dir }}/.npmrc"
owner=edxapp group=edxapp
notify
:
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
# Node play that need to be run after platform updates.
-
name
:
Install edx-platform npm dependencies
shell
:
npm install chdir={{ edxapp_code_dir }}
...
...
@@ -365,7 +375,7 @@
register
:
s3_one_time_url
-
name
:
download from one time url
get_url
:
get_url
:
url="{{ s3_one_time_url.url }}"
dest="{{ edxapp_data_dir }}/{{ EDXAPP_XML_S3_KEY|basename }}"
mode=0600
...
...
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