Skip to content

Commit

Permalink
Issue geerlingguy#429: Try to fix up chapter 10 deploy rails app exam…
Browse files Browse the repository at this point in the history
…ple a bit.
  • Loading branch information
geerlingguy committed Apr 15, 2022
1 parent da54150 commit 3bc149a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 3 additions & 1 deletion deployments/playbooks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
version: "{{ app_version }}"
dest: "{{ app_directory }}"
accept_hostkey: true
force: yes
force: true
register: app_updated
notify: restart nginx
become: true
become_user: "{{ app_user }}"

- name: Ensure secrets file is present.
template:
Expand Down
8 changes: 0 additions & 8 deletions deployments/playbooks/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,3 @@
- libreadline-dev
- tzdata
state: present

- name: Ensure app directory exists and is writeable.
file:
path: "{{ app_directory }}"
state: directory
owner: "{{ app_user }}"
group: "{{ app_user }}"
mode: 0755
4 changes: 2 additions & 2 deletions deployments/playbooks/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ passenger_ruby: /usr/local/bin/ruby

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

# Variables for Node.js installation.
nodejs_install_npm_user: root

0 comments on commit 3bc149a

Please sign in to comment.