【文件属性】:
文件名称:guard-puma:文件更改时重新启动puma
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-08 18:26:47
Ruby
后卫::美洲狮
某些文件更改时重新启动Puma
安装
将此行添加到您的应用程序的Gemfile中:
gem 'guard-puma'
然后执行:
$ bundle
或将其自己安装为:
$ gem install guard-puma
用法
guard init puma或将以下内容手动添加到Guardfile
guard 'puma' , :port => 4000 do
watch ( 'Gemfile.lock' )
watch ( %r{^config|lib/.*} )
end
选项
:port是要在其上运行的端口号(默认为4000 )
:environment是要使用的环境(默认development )
:start_on_start将在启动Guard时启动服务器,并在重新加载/停止Guard时停止服务器(默认为true )
:force_run在尝试(
【文件预览】:
guard-puma-master
----CHANGES.md(2KB)
----lib()
--------guard()
----Gemfile(95B)
----Guardfile(415B)
----spec()
--------lib()
--------spec_helper.rb(516B)
----Rakefile(163B)
----.travis.yml(217B)
----LICENSE(1KB)
----guard-puma.gemspec(1014B)
----README.md(3KB)
----.editorconfig(147B)
----.gitignore(167B)