Load env in rakefile

This commit is contained in:
2023-05-10 21:42:29 +10:00
parent 0fb0aa3c97
commit daa02ce35d

View File

@@ -4,11 +4,7 @@ require "dotenv"
require "hanami/rake_tasks"
namespace :blog do
task :load_from_letterboxd do
Dotenv::Parser.call(`cat .env.production`)
puts ENV["MICROPUB_SITE_NAME"]
task :load_from_letterboxd => :environment do
require "hanami/prepare"
require "scraperd"