Skip to content

Instantly share code, notes, and snippets.

@yasaichi
Created Mar 13, 2021
Embed
What would you like to do?
Hosting Rails application to Vercel
# NOTE: Put this file into `api` directory
require_relative "../config/environment"
class Handler < Rack::Handler::WEBrick
# Override
def initialize(server, *_options)
super(server, Rails.application)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment