This commit is contained in:
2023-05-10 22:02:01 +10:00
parent 57c44a7631
commit 40b8e988ad

View File

@@ -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"