You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
438 B

  1. #!/usr/bin/env ruby
  2. ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
  3. ENV["NODE_ENV"] ||= "development"
  4. require "pathname"
  5. ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
  6. Pathname.new(__FILE__).realpath)
  7. require "rubygems"
  8. require "bundler/setup"
  9. require "webpacker"
  10. require "webpacker/dev_server_runner"
  11. APP_ROOT = File.expand_path("..", __dir__)
  12. Dir.chdir(APP_ROOT) do
  13. Webpacker::DevServerRunner.run(ARGV)
  14. end