Skip to content

Instantly share code, notes, and snippets.

@yasaichi
Created March 13, 2021 05:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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