Created
March 13, 2021 05:19
-
-
Save yasaichi/bef177c3496861cfcd5e09abfbbe1185 to your computer and use it in GitHub Desktop.
Hosting Rails application to Vercel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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