Sha256: 53483c7c0e5bb203223e59d7760af2037800a267dc2a75147ed5393a708d22e6
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true def installed?(process) IO.popen "#{process} -v" rescue Errno::ENOENT false end def run(process) args = [*ARGV] args.shift puts "Using #{process}" exec "#{process} start -f Procfile.dev-static", args.join(" ") rescue Errno::ENOENT warn <<~MSG ERROR: Please ensure `Procfile.dev-static` exist in your project! MSG exit! end if installed? "overmind" run "overmind" elsif installed? "foreman" run "foreman" else warn <<~MSG NOTICE: For this script to run, you need either 'overmind' or 'foreman' installed on your machine. Please try this script after installing one of them. MSG exit! end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
react_on_rails-13.3.1 | lib/generators/react_on_rails/bin/dev-static |
react_on_rails-13.3.0 | lib/generators/react_on_rails/bin/dev-static |