Skip to content

Commit 3bc149a

Browse files
committed
Issue #429: Try to fix up chapter 10 deploy rails app example a bit.
1 parent da54150 commit 3bc149a

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

deployments/playbooks/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
version: "{{ app_version }}"
1616
dest: "{{ app_directory }}"
1717
accept_hostkey: true
18-
force: yes
18+
force: true
1919
register: app_updated
2020
notify: restart nginx
21+
become: true
22+
become_user: "{{ app_user }}"
2123

2224
- name: Ensure secrets file is present.
2325
template:

deployments/playbooks/provision.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,3 @@
1919
- libreadline-dev
2020
- tzdata
2121
state: present
22-
23-
- name: Ensure app directory exists and is writeable.
24-
file:
25-
path: "{{ app_directory }}"
26-
state: directory
27-
owner: "{{ app_user }}"
28-
group: "{{ app_user }}"
29-
mode: 0755

deployments/playbooks/vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ passenger_ruby: /usr/local/bin/ruby
1818

1919
# Variables for Ruby installation.
2020
ruby_install_from_source: true
21-
ruby_download_url: https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.0.tar.gz
22-
ruby_version: 2.6.0
21+
ruby_download_url: https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.6.tar.gz
22+
ruby_version: 2.7.6
2323

2424
# Variables for Node.js installation.
2525
nodejs_install_npm_user: root

0 commit comments

Comments
 (0)