add 'rake server' task
This commit is contained in:
parent
359cba7c39
commit
34c5ee2efe
3 changed files with 13 additions and 0 deletions
2
Gemfile
2
Gemfile
|
@ -9,3 +9,5 @@ gem "standardrb"
|
|||
gem "ryo.rb"
|
||||
gem "paint"
|
||||
gem "dotenv"
|
||||
gem "adsf"
|
||||
gem "puma"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue