diff --git a/lib/tasks/deploy/local.rb b/lib/tasks/deploy/local.rb index 40f783c..78721c5 100644 --- a/lib/tasks/deploy/local.rb +++ b/lib/tasks/deploy/local.rb @@ -12,6 +12,9 @@ class Tasks::Deploy::Local def call src, dest = settings.src, settings.dest user, group = settings.user, settings.group + logs_dir = settings.logs_dir + doas "root", "/bin/mkdir", "-p", logs_dir + doas "root", "/bin/mkdir", "-p", dest doas "root", "/bin/rm", "-rf", File.join(dest, "*") doas "root", "/bin/cp", "-r", src, dest doas "root", "/usr/sbin/chown", "-R", [user, group].join(":"), dest diff --git a/nanoc.yaml b/nanoc.yaml index 6a2046a..b26f9aa 100644 --- a/nanoc.yaml +++ b/nanoc.yaml @@ -25,3 +25,4 @@ deploy: group: www src: build/al-quran/. dest: /var/www/htdocs/al-quran.reflectslight.local/ + logs_dir: /var/www/logs/al-quran.reflectslight.local/