Commit ea0714ac by Clinton Blackburn

Installing forums bundle to the correct location

parent c44bfd00
--- ---
forum_app_dir: "{{ COMMON_APP_DIR }}/forum" forum_app_dir: "{{ COMMON_APP_DIR }}/forum"
forum_code_dir: "{{ forum_app_dir }}/cs_comments_service" forum_code_dir: "{{ forum_app_dir }}/cs_comments_service"
forum_binstubs_dir: "{{ forum_code_dir }}/bin"
forum_data_dir: "{{ COMMON_DATA_DIR }}/forum" forum_data_dir: "{{ COMMON_DATA_DIR }}/forum"
forum_rbenv_dir: "{{ forum_app_dir }}" forum_rbenv_dir: "{{ forum_app_dir }}"
forum_rbenv_root: "{{ forum_app_dir }}/.rbenv" forum_rbenv_root: "{{ forum_app_dir }}/.rbenv"
...@@ -9,7 +10,7 @@ forum_rbenv_bin: "{{ forum_rbenv_root }}/bin" ...@@ -9,7 +10,7 @@ forum_rbenv_bin: "{{ forum_rbenv_root }}/bin"
forum_supervisor_wrapper: "{{ forum_app_dir }}/forum-supervisor.sh" forum_supervisor_wrapper: "{{ forum_app_dir }}/forum-supervisor.sh"
forum_gem_root: "{{ forum_rbenv_dir }}/.gem" forum_gem_root: "{{ forum_rbenv_dir }}/.gem"
forum_gem_bin: "{{ forum_gem_root }}/bin" forum_gem_bin: "{{ forum_gem_root }}/bin"
forum_path: "{{ forum_code_dir }}/bin:{{ forum_rbenv_bin }}:{{ forum_rbenv_shims }}:{{ forum_gem_bin }}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" forum_path: "{{ forum_binstubs_dir }}:{{ forum_rbenv_bin }}:{{ forum_rbenv_shims }}:{{ forum_gem_bin }}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
FORUM_MONGO_USER: "cs_comments_service" FORUM_MONGO_USER: "cs_comments_service"
FORUM_MONGO_PASSWORD: "password" FORUM_MONGO_PASSWORD: "password"
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
- install:code - install:code
- name: install comments service bundle - name: install comments service bundle
shell: bundle install --deployment chdir={{ forum_code_dir }} shell: bundle install --deployment --path {{ forum_gem_root }} chdir={{ forum_code_dir }}
sudo_user: "{{ forum_user }}" sudo_user: "{{ forum_user }}"
environment: "{{ forum_environment }}" environment: "{{ forum_environment }}"
notify: restart the forum service notify: restart the forum service
......
...@@ -6,7 +6,7 @@ cd {{ forum_code_dir }} ...@@ -6,7 +6,7 @@ cd {{ forum_code_dir }}
{% if devstack %} {% if devstack %}
{{ forum_rbenv_shims }}/ruby app.rb {{ forum_rbenv_shims }}/ruby app.rb
{% elif FORUM_USE_TCP %} {% elif FORUM_USE_TCP %}
{{ forum_gem_bin }}/unicorn -c config/unicorn_tcp.rb {{ forum_binstubs_dir }}/unicorn -c config/unicorn_tcp.rb
{% else %} {% else %}
{{ forum_gem_bin }}/unicorn -c config/unicorn.rb {{ forum_binstubs_dir }}/unicorn -c config/unicorn.rb
{% endif %} {% endif %}
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