Skip to content
Snippets Groups Projects
Commit 2817ff34 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Fix ruby bugs in uwsgi-python

parent 65364d9e
No related branches found
No related tags found
No related merge requests found
...@@ -235,12 +235,32 @@ ...@@ -235,12 +235,32 @@
- "{{ app.app }}" - "{{ app.app }}"
- "{{ app.instance }}" - "{{ app.instance }}"
- name: Create bundler directories with user permissions
file:
path: "{{ item }}"
state: directory
mode: 0775
owner: "{{ app_user }}"
loop:
- "{{ app_path }}/.bundle"
- "{{ app_path }}/vendor"
when:
- app_gemfile is defined
- app_gemfile|string != ''
- app_lang == "ruby"
tags:
- uwsgi-app
- "{{ app.app }}"
- "{{ app.instance }}"
- name: Install gems - name: Install gems
bundler: bundler:
deployment_mode: true deployment_mode: true
exclude_groups: exclude_groups:
- development - development
gemfile: "{{ app_gemfile }}" gemfile: "{{ app_gemfile }}"
become: true
become_user: "{{ app_user }}"
when: when:
- app_gemfile is defined - app_gemfile is defined
- app_gemfile|string != '' - app_gemfile|string != ''
......
...@@ -67,7 +67,7 @@ pyargv = {{app_program}} {{app_command}} ...@@ -67,7 +67,7 @@ pyargv = {{app_program}} {{app_command}}
mount={{app_mountpoint}}={{app_path}}/{{app_program}} mount={{app_mountpoint}}={{app_path}}/{{app_program}}
{% endif %} {% endif %}
{% elif app_lang == "ruby" %} {% elif app_lang == "ruby" %}
plugin = rack-ruby{{app_ruby_version|replace(".", "")}} plugin = rack_ruby{{app_ruby_version|replace(".", "")}}
rack = {{app_rack}} rack = {{app_rack}}
{% if app_gemfile is defined and app_gemfile != '' %} {% if app_gemfile is defined and app_gemfile != '' %}
env = BUNDLE_GEMFILE={{app_gemfile}} env = BUNDLE_GEMFILE={{app_gemfile}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment