From 34c5ee2efe03516b25883d5c82bb2f8822eb8d1e Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 3 Nov 2022 19:09:51 -0300 Subject: [PATCH] add 'rake server' task --- Gemfile | 2 ++ Gemfile.lock | 5 +++++ Rakefile.rb | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/Gemfile b/Gemfile index ffbb04e..15df9df 100644 --- a/Gemfile +++ b/Gemfile @@ -9,3 +9,5 @@ gem "standardrb" gem "ryo.rb" gem "paint" gem "dotenv" +gem "adsf" +gem "puma" diff --git a/Gemfile.lock b/Gemfile.lock index e74e06f..4f863c7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -71,6 +71,7 @@ GEM listen (~> 3.0) nanoc-cli (~> 4.11, >= 4.11.14) nanoc-core (~> 4.11, >= 4.11.14) + nio4r (2.5.8) paint (2.3.0) parallel (1.22.1) parser (3.1.2.1) @@ -80,6 +81,8 @@ GEM psych (4.0.6) stringio public_suffix (5.0.0) + puma (6.0.0) + nio4r (~> 2.0) rack (2.2.4) rack-livereload (0.3.17) rack @@ -131,10 +134,12 @@ PLATFORMS x86_64-freebsd-13 DEPENDENCIES + adsf dotenv nanoc (~> 4.12) nanoc-live (~> 1.0) paint + puma rainpress (~> 1.0) ryo.rb sass diff --git a/Rakefile.rb b/Rakefile.rb index c18e986..8edb3ae 100644 --- a/Rakefile.rb +++ b/Rakefile.rb @@ -11,6 +11,12 @@ namespace :nanoc do end task build: "nanoc:compile" +task server: ["nanoc:compile"] do + Dir.chdir(File.join(Dir.getwd, "build", "al-quran")) do + sh "ruby -S bundle exec adsf" + end +end + namespace :deploy do task local: ["nanoc:compile"] do Deploy::Local.call