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
7c4bac99
Commit
7c4bac99
authored
May 12, 2014
by
Bertrand Marron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add npm mirror URL
Allow to set a custom npm local mirror (e.g sinopia).
parent
03bcd1c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
playbooks/roles/common/defaults/main.yml
+1
-0
playbooks/roles/edxapp/tasks/deploy.yml
+1
-1
No files found.
playbooks/roles/common/defaults/main.yml
View file @
7c4bac99
...
@@ -18,6 +18,7 @@ COMMON_CFG_DIR: "{{ COMMON_BASE_DIR }}/etc"
...
@@ -18,6 +18,7 @@ COMMON_CFG_DIR: "{{ COMMON_BASE_DIR }}/etc"
COMMON_ENVIRONMENT
:
'
default_env'
COMMON_ENVIRONMENT
:
'
default_env'
COMMON_DEPLOYMENT
:
'
default_deployment'
COMMON_DEPLOYMENT
:
'
default_deployment'
COMMON_PYPI_MIRROR_URL
:
'
https://pypi.python.org/simple'
COMMON_PYPI_MIRROR_URL
:
'
https://pypi.python.org/simple'
COMMON_NPM_MIRROR_URL
:
'
http://registry.npmjs.org'
# do not include http/https
# do not include http/https
COMMON_GIT_MIRROR
:
'
github.com'
COMMON_GIT_MIRROR
:
'
github.com'
# override this var to set a different hostname
# override this var to set a different hostname
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
7c4bac99
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
# Set the npm registry
# Set the npm registry
-
name
:
Set the npm registry
-
name
:
Set the npm registry
shell
:
shell
:
npm config set registry '
http://registry.npmjs.org
'
npm config set registry '
{{ COMMON_NPM_MIRROR_URL }}
'
creates="{{ edxapp_app_dir }}/.npmrc"
creates="{{ edxapp_app_dir }}/.npmrc"
sudo_user
:
"
{{
edxapp_user
}}"
sudo_user
:
"
{{
edxapp_user
}}"
environment
:
"
{{
edxapp_environment
}}"
environment
:
"
{{
edxapp_environment
}}"
...
...
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