forked from fluent/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
29 lines (26 loc) · 645 Bytes
/
Rakefile
File metadata and controls
29 lines (26 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'rubygems'
require 'bundler'
Bundler.setup
$LOAD_PATH << File.dirname(__FILE__) + '/lib'
#require 'article'
#require 'indextank'
desc 'start a development server'
task :server do
if which('shotgun')
exec 'shotgun -O app.rb -p 9396'
else
warn 'warn: shotgun not installed; reloading is disabled.'
exec 'ruby -rubygems app.rb -p 9396'
end
end
def which(command)
ENV['PATH'].
split(':').
map { |p| "#{p}/#{command}" }.
find { |p| File.executable?(p) }
end
task :start => :server
desc 'update the plugin file page'
task :plugins do
require File.dirname(__FILE__) + '/scripts/plugin/update-html.rb'
end