You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 26, 2024. It is now read-only.
I'm trying to get this to work with Rails, can you offer guidance on where I'm going wrong?
~$: cat config/application.rb
require'phrender'
...
# Settings in config/environments/* take precedence over those specified here.# Application configuration should go into files in config/initializers# -- all .rb files in that directory are automatically loaded.config.middleware.usePhrender::RackMiddleware,{javascript_files: [:ember_driver,'/assets/application.js'],javascript: ['App = Ember.Application.create()'],index_file: '/assets/phrender.html'}
use Rack::Sendfile
use ActionDispatch::Static
use Rack::Lock
use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x007fa3a19e9778>
use Rack::Runtime
use Rack::MethodOverride
use ActionDispatch::RequestId
use Rails::Rack::Logger
use ActionDispatch::ShowExceptions
use ActionDispatch::DebugExceptions
use ActionDispatch::RemoteIp
use ActionDispatch::Reloader
use ActionDispatch::Callbacks
use ActiveRecord::Migration::CheckPending
use ActiveRecord::ConnectionAdapters::ConnectionManagement
use ActiveRecord::QueryCache
use ActionDispatch::Cookies
use ActionDispatch::Session::CookieStore
use ActionDispatch::Flash
use ActionDispatch::ParamsParser
use Rack::Head
use Rack::ConditionalGet
use Rack::ETag
use Phrender::RackMiddleware
run App::Application.routes
~$: cat Gemfile
...
gem 'phrender'
~$: which phantomjs
/usr/local/bin/phantomjs
There are no apparent errors development.log, and it appears as if the page only gets hit once (as I understand after hitting the page the first time phantom js should hit it again?)
Please let me know if more information would be helpful.
I'm trying to get this to work with Rails, can you offer guidance on where I'm going wrong?
~$: cat config/application.rb~$: cat public/assets/phrender.html~$: rake middleware~$: cat Gemfile~$: which phantomjsThere are no apparent errors development.log, and it appears as if the page only gets hit once (as I understand after hitting the page the first time phantom js should hit it again?)
Please let me know if more information would be helpful.