Some checks failed
parsley/pipeline/head There was a failure building this commit
25 lines
378 B
Ruby
25 lines
378 B
Ruby
namespace :dev do
|
|
|
|
desc 'Run both rails server and webpack dev server'
|
|
task :run do
|
|
|
|
pids = []
|
|
|
|
pids << fork do
|
|
exec 'rails s'
|
|
end
|
|
|
|
pids << fork do
|
|
exec 'bin/webpack-dev-server'
|
|
end
|
|
|
|
begin
|
|
Process.wait
|
|
rescue SignalException
|
|
puts 'shutting down...'
|
|
pids.each { |pid| Process.kill("SIGINT", pid) }
|
|
end
|
|
|
|
end
|
|
|
|
end |