add 'rake server' task

This commit is contained in:
0x1eef 2022-11-03 19:09:51 -03:00
parent 359cba7c39
commit 34c5ee2efe
3 changed files with 13 additions and 0 deletions

View file

@ -9,3 +9,5 @@ gem "standardrb"
gem "ryo.rb" gem "ryo.rb"
gem "paint" gem "paint"
gem "dotenv" gem "dotenv"
gem "adsf"
gem "puma"

View file

@ -71,6 +71,7 @@ GEM
listen (~> 3.0) listen (~> 3.0)
nanoc-cli (~> 4.11, >= 4.11.14) nanoc-cli (~> 4.11, >= 4.11.14)
nanoc-core (~> 4.11, >= 4.11.14) nanoc-core (~> 4.11, >= 4.11.14)
nio4r (2.5.8)
paint (2.3.0) paint (2.3.0)
parallel (1.22.1) parallel (1.22.1)
parser (3.1.2.1) parser (3.1.2.1)
@ -80,6 +81,8 @@ GEM
psych (4.0.6) psych (4.0.6)
stringio stringio
public_suffix (5.0.0) public_suffix (5.0.0)
puma (6.0.0)
nio4r (~> 2.0)
rack (2.2.4) rack (2.2.4)
rack-livereload (0.3.17) rack-livereload (0.3.17)
rack rack
@ -131,10 +134,12 @@ PLATFORMS
x86_64-freebsd-13 x86_64-freebsd-13
DEPENDENCIES DEPENDENCIES
adsf
dotenv dotenv
nanoc (~> 4.12) nanoc (~> 4.12)
nanoc-live (~> 1.0) nanoc-live (~> 1.0)
paint paint
puma
rainpress (~> 1.0) rainpress (~> 1.0)
ryo.rb ryo.rb
sass sass

View file

@ -11,6 +11,12 @@ namespace :nanoc do
end end
task build: "nanoc:compile" 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 namespace :deploy do
task local: ["nanoc:compile"] do task local: ["nanoc:compile"] do
Deploy::Local.call Deploy::Local.call