Please use your platform's specific instructions for the below as needed.
- Ruby via the
.ruby-version
- The gems in the associated
Gemfile
puma-dev
to simplify HTTPS connections (WebAuthn requires a Secure context)
To have puma-dev
proxy the requests to the foreground server (bundle exec rails server
), you will need to specify the port to map to the test domain (see: https://github.com/puma/puma-dev#proxy-support):
echo '3210' > ~/.puma-dev/devise-passkeys
./bin/dev_server
(which is a simple wrapper around):
bundle exec rails s --port 3210
The app is now running at https://devise-passkeys.test
Pulled from Getting your Rails dev environment ready for passkeys