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
e935595d
Commit
e935595d
authored
Oct 27, 2014
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1664 from edx/insights-rjs
Added play to run r.js for Insights
parents
2fc42d2d
b38ec4c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
playbooks/roles/insights/defaults/main.yml
+1
-0
playbooks/roles/insights/tasks/deploy.yml
+8
-1
No files found.
playbooks/roles/insights/defaults/main.yml
View file @
e935595d
...
...
@@ -123,6 +123,7 @@ insights_log_dir: "{{ COMMON_LOG_DIR }}/{{ insights_service_name }}"
insights_nodeenv_dir
:
"
{{
insights_home
}}/nodeenvs/{{
insights_service_name
}}"
insights_nodeenv_bin
:
"
{{
insights_nodeenv_dir
}}/bin"
insights_node_modules_dir
:
"
{{
insights_code_dir
}}/node_modules"
insights_node_bin
:
"
{{
insights_node_modules_dir
}}/.bin"
insights_gunicorn_host
:
"
127.0.0.1"
insights_gunicorn_port
:
"
8110"
...
...
playbooks/roles/insights/tasks/deploy.yml
View file @
e935595d
...
...
@@ -52,6 +52,7 @@
-
name
:
create nodeenv
shell
:
>
creates={{ insights_nodeenv_dir }}
{{ insights_venv_bin }}/nodeenv {{ insights_nodeenv_dir }}
sudo_user
:
"
{{
insights_user
}}"
...
...
@@ -62,7 +63,7 @@
-
name
:
install bower dependencies
shell
:
>
chdir={{ insights_code_dir }}
. {{ insights_nodeenv_bin }}/activate && {{ insights_node_
modules_dir }}/.bin
/bower install --production --config.interactive=false
. {{ insights_nodeenv_bin }}/activate && {{ insights_node_
bin }}
/bower install --production --config.interactive=false
sudo_user
:
"
{{
insights_user
}}"
-
name
:
syncdb and migrate
...
...
@@ -75,6 +76,12 @@
environment
:
"
{{
insights_environment
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes"
-
name
:
run r.js optimizer
shell
:
>
chdir={{ insights_code_dir }}
. {{ insights_nodeenv_bin }}/activate && {{ insights_node_bin }}/r.js -o build.js
sudo_user
:
"
{{
insights_user
}}"
-
name
:
run collectstatic
shell
:
>
chdir={{ insights_code_dir }}
...
...
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