From 40b8e988adc96fd96bc021235f4f83893b169b4a Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Wed, 10 May 2023 22:02:01 +1000 Subject: [PATCH] Rakefile --- Rakefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 7a12df6..8e0ff0e 100644 --- a/Rakefile +++ b/Rakefile @@ -4,11 +4,11 @@ require "dotenv" require "hanami/rake_tasks" namespace :blog do - task :load_from_letterboxd do - Dotenv::Parser.call(`cat /home/blog/current/.env.production`) - - puts ENV["MICROPUB_SITE_NAME"] + task :load_environment do + Dotenv.load("/home/blog/current/.env.production") + end + task :load_from_letterboxd => ["blog:load_environment"] do require "hanami/prepare" require "scraperd"