Skip to content

Instantly share code, notes, and snippets.

@yasaichi
Created March 13, 2021 05:19
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 yasaichi/bef177c3496861cfcd5e09abfbbe1185 to your computer and use it in GitHub Desktop.
Save yasaichi/bef177c3496861cfcd5e09abfbbe1185 to your computer and use it in GitHub Desktop.
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