parsley/lib/tasks/dev.rake
Dan Elbert 18603dc783
Some checks failed
parsley/pipeline/head There was a failure building this commit
tasks
2018-09-06 18:16:13 -05:00

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