Fix server.rb support

This commit is contained in:
0x1eef 2024-03-23 14:45:43 -03:00
parent 337a2460e3
commit b8b304bdf2
3 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ gem "sass", "~> 3.7"
##
# Web server
gem "server.rb", path: "./packages/ruby/server"
gem "server.rb", path: "./packages/ruby/server.rb"
##
# Other

View file

@ -1,5 +1,5 @@
PATH
remote: packages/ruby/server
remote: packages/ruby/server.rb
specs:
server.rb (0.1.0)
puma (~> 6.3)
@ -70,7 +70,7 @@ GEM
nanoc-tidy.rb (0.4.0)
nanoc-webpack.rb (0.5.6)
ryo.rb (~> 0.4)
nio4r (2.7.0)
nio4r (2.7.1)
paint (2.3.0)
parallel (1.24.0)
parser (3.3.0.5)
@ -84,7 +84,7 @@ GEM
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
rack (3.0.9)
rack (3.0.10)
rainbow (3.1.1)
rainpress (1.0.1)
rb-fsevent (0.11.2)

View file

@ -21,7 +21,7 @@ task :server, [:protocol] do |_t, args|
else
{host: nanoc.server.tcp.host, port: nanoc.server.tcp.port}
end
s = Server.for_dir(nanoc.output_dir, o)
s = Server.dir(nanoc.output_dir, o)
s.start(block: true)
rescue Interrupt
s.stop