Rakefile
This commit is contained in:
8
Rakefile
8
Rakefile
@@ -4,11 +4,11 @@ require "dotenv"
|
|||||||
require "hanami/rake_tasks"
|
require "hanami/rake_tasks"
|
||||||
|
|
||||||
namespace :blog do
|
namespace :blog do
|
||||||
task :load_from_letterboxd do
|
task :load_environment do
|
||||||
Dotenv::Parser.call(`cat /home/blog/current/.env.production`)
|
Dotenv.load("/home/blog/current/.env.production")
|
||||||
|
end
|
||||||
puts ENV["MICROPUB_SITE_NAME"]
|
|
||||||
|
|
||||||
|
task :load_from_letterboxd => ["blog:load_environment"] do
|
||||||
require "hanami/prepare"
|
require "hanami/prepare"
|
||||||
require "scraperd"
|
require "scraperd"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user