From b02c38d3acb64dbf753a8e52e9065fa885c7b8da Mon Sep 17 00:00:00 2001 From: lapineige Date: Sun, 25 Jun 2023 18:01:01 +0200 Subject: [PATCH] V2 --- conf/delayed_job_cron.sh | 4 ++-- conf/nginx.conf | 4 ++-- conf/storage.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/delayed_job_cron.sh b/conf/delayed_job_cron.sh index 683c1eb..4efc19c 100644 --- a/conf/delayed_job_cron.sh +++ b/conf/delayed_job_cron.sh @@ -1,5 +1,5 @@ #!/bin/bash -if ! [ -s __FINALPATH__/live/tmp/pids/delayed_job.pid ]; then - RAILS_ENV=production __FINALPATH__/live/bin/delayed_job start +if ! [ -s __INSTALL_DIR__/live/tmp/pids/delayed_job.pid ]; then + RAILS_ENV=production __INSTALL_DIR__/live/bin/delayed_job start fi \ No newline at end of file diff --git a/conf/nginx.conf b/conf/nginx.conf index bd7b40d..3e4a0b4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,7 +2,7 @@ location __PATH__/ { # Path to source - alias __FINALPATH__/live/public/; + alias __INSTALL_DIR__/live/public/; client_max_body_size 32M; @@ -17,7 +17,7 @@ location __PATH__/ { location __PATH__/decidim-packs/ { # Path to source - alias __FINALPATH__/live/public/decidim-packs/; + alias __INSTALL_DIR__/live/public/decidim-packs/; gzip_static on; expires max; more_set_headers "Cache-Control: public"; diff --git a/conf/storage.yml b/conf/storage.yml index 2f9df68..d30158f 100644 --- a/conf/storage.yml +++ b/conf/storage.yml @@ -4,7 +4,7 @@ test: local: service: Disk - root: __DATADIR__ + root: __DATA_DIR__ # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) # amazon: