Skip to content

Instantly share code, notes, and snippets.

View dryaf's full-sized avatar
💭
show me the way to grayskull

dryaf dryaf

💭
show me the way to grayskull
  • secret
  • Austria
View GitHub Profile
@dryaf
dryaf / activate_ssl_rails_dev_puma.sh
Last active April 7, 2022 14:46
Use SSL in Development-Mode in Ruby on Rails 7
# rm -rf config/certs
brew install mkcert
mkdir -p config/certs
mkcert localhost
mv *.pem config/certs
cat << EOF
# for Rails 7, config/puma.rb - replace port ENV.fetch("PORT") { 3000 } with this
if ENV.fetch("RAILS_ENV", "development") == "development"
ssl_bind(
'0.0.0.0',