Skip to content

Instantly share code, notes, and snippets.

@jonnyyu
Created April 5, 2017 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonnyyu/825340ec485cfbf79e4e0b9a369dc9a1 to your computer and use it in GitHub Desktop.
Save jonnyyu/825340ec485cfbf79e4e0b9a369dc9a1 to your computer and use it in GitHub Desktop.
fake a react-packager to avoid launching packager on CI
#!/usr/bin/ruby
require 'webrick'
server = WEBrick::HTTPServer.new(:Port => 8081)
server.mount_proc '/' do |req, res|
res.body = 'packager-status:running'
end
server.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment