From 3dc69eb6ad7543543d9274de7d58ecd2a192cb4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 26 Jun 2024 16:04:31 +0200 Subject: [PATCH 1/2] Use bundle exec to run delayed jobs When installing Consul Democracy 2.2.0, we were getting an error: ``` `require': cannot load such file -- sassc-embedded (LoadError) from :86:in `require' from config/application.rb:1:in ``` No idea why this gem isn't detected when running `bin/delayed_job`. When deploying with Capistrano, we use `bundle exec bin/delayed_job`, and that works fine, so we're using it here as well. --- roles/queue/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/queue/tasks/main.yml b/roles/queue/tasks/main.yml index 8a895d1..234957e 100644 --- a/roles/queue/tasks/main.yml +++ b/roles/queue/tasks/main.yml @@ -1,5 +1,5 @@ - name: Start DelayedJobs queue - shell: "{{ rvm_command }} && RAILS_ENV={{ env }} EXECJS_RUNTIME=Disabled bin/delayed_job -m -n 2 restart" + shell: "{{ rvm_command }} && RAILS_ENV={{ env }} EXECJS_RUNTIME=Disabled bundle exec bin/delayed_job -m -n 2 restart" args: executable: /bin/bash chdir: "{{ release_dir }}" From f1b2f439ccb3c94d8a088d6060178a447debfedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 26 Jun 2024 16:08:16 +0200 Subject: [PATCH 2/2] Install Consul Democracy version 2.2.0 --- README.md | 10 +++++----- roles/folder_structure/tasks/main.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2abf474..fd3c6a1 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ Setup locally for your [development environment](https://docs.consuldemocracy.or Checkout the latest stable version: ``` -git checkout origin/2.1.1 -b stable +git checkout origin/2.2.0 -b stable ``` Create your `deploy-secrets.yml` @@ -207,13 +207,13 @@ Using https instead of http is an important security configuration. Before you b Once you have that setup we need to configure the Installer to use your domain in the application. -First, uncomment the `domain` variable in the [configuration file](https://github.com/consuldemocracy/installer/blob/2.1.1/group_vars/all) and update it with your domain name: +First, uncomment the `domain` variable in the [configuration file](https://github.com/consuldemocracy/installer/blob/2.2.0/group_vars/all) and update it with your domain name: ``` #domain: "your_domain.com" ``` -Next, uncomment the `letsencrypt_email` variable in the [configuration file](https://github.com/consuldemocracy/installer/blob/2.1.1/group_vars/all) and update it with a valid email address: +Next, uncomment the `letsencrypt_email` variable in the [configuration file](https://github.com/consuldemocracy/installer/blob/2.2.0/group_vars/all) and update it with a valid email address: ``` #letsencrypt_email: "your_email@example.com" @@ -260,7 +260,7 @@ If you are on Ubuntu and would like to use its default `sudo` group instead of ` deploy_group: sudo ``` -There are many more variables available check them out [here]((https://github.com/consuldemocracy/installer/blob/2.1.1/group_vars/all)) +There are many more variables available check them out [here]((https://github.com/consuldemocracy/installer/blob/2.2.0/group_vars/all)) ## Other deployment options @@ -290,7 +290,7 @@ If you do not have `root` access, you will need your system administrator to gra ## Using a different user than deploy -Change the variable [deploy_user](https://github.com/consuldemocracy/installer/blob/2.1.1/group_vars/all#L12) to the username you would like to use. +Change the variable [deploy_user](https://github.com/consuldemocracy/installer/blob/2.2.0/group_vars/all#L12) to the username you would like to use. ## Ansible Documentation diff --git a/roles/folder_structure/tasks/main.yml b/roles/folder_structure/tasks/main.yml index 15def20..8ff26c6 100644 --- a/roles/folder_structure/tasks/main.yml +++ b/roles/folder_structure/tasks/main.yml @@ -22,7 +22,7 @@ state: directory - name: Create first release - shell: "git archive 2.1.1 | /usr/bin/env tar -x -f - -C {{ first_release_dir }}" + shell: "git archive 2.2.0 | /usr/bin/env tar -x -f - -C {{ first_release_dir }}" args: chdir: "{{ consul_dir }}/repo"