airbnb / hypernova

A service for server-side rendering your JavaScript views
MIT License
5.82k stars 207 forks source link

Rails 5.1 Support #108

Open hin101 opened 6 years ago

hin101 commented 6 years ago

Does Hypernova support Rails 5.1? I have tried to setup server side rendering but my node server doesn't respond.

goatslacker commented 6 years ago

I don't see why not? Are you getting any errors?

hin101 commented 6 years ago

I'm not getting any errors, the server is just blank even with debugging turned on.

agungyuliaji commented 6 years ago

@hin101 running smoothly rails 5.1.5 + ruby 2.5.0 in here.

the server is just blank even with debugging turned on

👆 Probably you missed something.

on hypernova server devMode: true

then on rails server hypernova.rb

require 'hypernova'
require 'hypernova/plugins/development_mode_plugin'

Hypernova.add_plugin!(DevelopmentModePlugin.new)

Hypernova.configure do |config|
  config.host = 'localhost'
  config.port = 3030
end

after doing above, if there is a problem it should come out red box from hypernova on the browser