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
edx
configuration
Commits
600413b2
Commit
600413b2
authored
Dec 28, 2015
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include nodeenv in the PATH used when installing node dependencies
parent
4275a87e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
playbooks/roles/programs/defaults/main.yml
+5
-5
playbooks/roles/programs/tasks/main.yml
+2
-1
No files found.
playbooks/roles/programs/defaults/main.yml
View file @
600413b2
...
@@ -95,11 +95,6 @@ PROGRAMS_GUNICORN_WORKER_CLASS: "gevent"
...
@@ -95,11 +95,6 @@ PROGRAMS_GUNICORN_WORKER_CLASS: "gevent"
programs_role_name
:
programs
programs_role_name
:
programs
programs_venv_dir
:
"
{{
programs_home
}}/venvs/{{
programs_service_name
}}"
programs_venv_dir
:
"
{{
programs_home
}}/venvs/{{
programs_service_name
}}"
programs_environment
:
DJANGO_SETTINGS_MODULE
:
"
{{
PROGRAMS_DJANGO_SETTINGS_MODULE
}}"
PROGRAMS_CFG
:
"
{{
COMMON_CFG_DIR
}}/{{
programs_service_name
}}.yml"
PATH
:
"
{{
programs_venv_dir
}}/bin:{{
ansible_env.PATH
}}"
programs_service_name
:
"
programs"
programs_service_name
:
"
programs"
programs_user
:
"
{{
programs_service_name
}}"
programs_user
:
"
{{
programs_service_name
}}"
programs_home
:
"
{{
COMMON_APP_DIR
}}/{{
programs_service_name
}}"
programs_home
:
"
{{
COMMON_APP_DIR
}}/{{
programs_service_name
}}"
...
@@ -110,6 +105,11 @@ programs_nodeenv_bin: "{{ programs_nodeenv_dir }}/bin"
...
@@ -110,6 +105,11 @@ programs_nodeenv_bin: "{{ programs_nodeenv_dir }}/bin"
programs_node_modules_dir
:
"
{{
programs_code_dir
}}/node_modules"
programs_node_modules_dir
:
"
{{
programs_code_dir
}}/node_modules"
programs_node_bin
:
"
{{
programs_node_modules_dir
}}/.bin"
programs_node_bin
:
"
{{
programs_node_modules_dir
}}/.bin"
programs_environment
:
DJANGO_SETTINGS_MODULE
:
"
{{
PROGRAMS_DJANGO_SETTINGS_MODULE
}}"
PROGRAMS_CFG
:
"
{{
COMMON_CFG_DIR
}}/{{
programs_service_name
}}.yml"
PATH
:
"
{{
programs_nodeenv_bin
}}:{{
programs_venv_dir
}}/bin:{{
ansible_env.PATH
}}"
programs_gunicorn_host
:
"
127.0.0.1"
programs_gunicorn_host
:
"
127.0.0.1"
programs_gunicorn_port
:
8140
programs_gunicorn_port
:
8140
programs_gunicorn_timeout
:
300
programs_gunicorn_timeout
:
300
...
...
playbooks/roles/programs/tasks/main.yml
View file @
600413b2
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
-
name
:
install node dependencies
-
name
:
install node dependencies
npm
:
executable={{ programs_nodeenv_bin }}/npm path={{ programs_code_dir }} production=yes
npm
:
executable={{ programs_nodeenv_bin }}/npm path={{ programs_code_dir }} production=yes
sudo_user
:
"
{{
programs_user
}}"
sudo_user
:
"
{{
programs_user
}}"
environment
:
"
{{
programs_environment
}}"
-
name
:
install bower dependencies
-
name
:
install bower dependencies
shell
:
>
shell
:
>
...
@@ -64,7 +65,7 @@
...
@@ -64,7 +65,7 @@
-
name
:
compile sass
-
name
:
compile sass
shell
:
>
shell
:
>
chdir={{ programs_code_dir }}
chdir={{ programs_code_dir }}
. {{ programs_nodeenv_bin }}/activate &&
npm rebuild node-sass &&
{{ programs_node_bin }}/gulp css
. {{ programs_nodeenv_bin }}/activate && {{ programs_node_bin }}/gulp css
sudo_user
:
"
{{
programs_user
}}"
sudo_user
:
"
{{
programs_user
}}"
when
:
not devstack
when
:
not devstack
...
...
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