Commit 7a639872 by George Song

Resolve conflict in discovery role

parent 1af47b7c
...@@ -56,64 +56,54 @@ ...@@ -56,64 +56,54 @@
- install - install
- install:system-requirements - install:system-requirements
- name: install application requirements - name: install nodenv
command: make production-requirements pip:
args: name: "nodeenv"
chdir: "{{ discovery_code_dir }}" version: "1.1.0"
# NOTE (CCB): Using the "virtualenv" option here doesn't seem to work.
executable: "{{ discovery_venv_dir }}/bin/pip"
become_user: "{{ discovery_user }}" become_user: "{{ discovery_user }}"
environment: "{{ discovery_environment }}"
tags: tags:
- install - install
- install:app-requirements - install:system-requirements
- name: install development requirements
command: make requirements
args:
chdir: "{{ discovery_code_dir }}"
become_user: "{{ discovery_user }}"
environment: "{{ discovery_environment }}"
tags:
- devstack
- devstack:install
# See https://github.com/ekalinin/nodeenv/issues/182 # See https://github.com/ekalinin/nodeenv/issues/182
# This can be removed once https://github.com/ekalinin/nodeenv/pull/183 is merged # This can be removed once https://github.com/ekalinin/nodeenv/pull/183 is merged
- name: Remove nodeenv src - name: remove nodeenv src
file: file:
path: "{{ discovery_nodeenv_dir }}/src" path: "{{ discovery_nodeenv_dir }}/src"
state: absent state: absent
become_user: "{{ discovery_user }}" become_user: "{{ discovery_user }}"
tags: tags:
- install - install
- install:app-requirements - install:system-requirements
- name: create nodeenv - name: create nodeenv
shell: "{{ discovery_venv_dir }}/bin/nodeenv {{ discovery_nodeenv_dir }} --node={{ discovery_node_version }} --prebuilt --force" shell: "{{ discovery_venv_dir }}/bin/nodeenv {{ discovery_nodeenv_dir }} --node={{ discovery_node_version }} --prebuilt --force"
become_user: "{{ discovery_user }}" become_user: "{{ discovery_user }}"
tags: tags:
- install - install
- install:app-requirements - install:system-requirements
- name: install node dependencies - name: install application requirements
npm: command: make production-requirements
executable: "{{ discovery_nodeenv_bin }}/npm" args:
path: "{{ discovery_code_dir }}" chdir: "{{ discovery_code_dir }}"
production: yes
state: latest
become_user: "{{ discovery_user }}" become_user: "{{ discovery_user }}"
environment: "{{ discovery_environment }}" environment: "{{ discovery_environment }}"
tags: tags:
- install - install
- install:app-requirements - install:app-requirements
- name: install bower dependencies - name: install development requirements
shell: ". {{ discovery_nodeenv_bin }}/activate && {{ discovery_node_bin }}/bower install --production --config.interactive=false" command: make requirements
args: args:
chdir: "{{ discovery_code_dir }}" chdir: "{{ discovery_code_dir }}"
become_user: "{{ discovery_user }}" become_user: "{{ discovery_user }}"
environment: "{{ discovery_environment }}"
tags: tags:
- install - devstack
- install:app-requirements - devstack:install
- name: migrate database - name: migrate database
command: make migrate command: make migrate
...@@ -257,4 +247,3 @@ ...@@ -257,4 +247,3 @@
tags: tags:
- install - install
- install:vhosts - install:vhosts
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