Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config https for local development #1

Open
byhbt opened this issue Jun 3, 2020 · 0 comments
Open

Config https for local development #1

byhbt opened this issue Jun 3, 2020 · 0 comments
Labels
Ruby Learning Ruby on Rails
Projects

Comments

@byhbt
Copy link
Owner

byhbt commented Jun 3, 2020

Problem:

As a developer, I want to set up https for my local development, so I can access https://localhost:3000 to test the features which require https.

Solution:

Generate SSL certificate: https://github.com/codica2/rails-puma-ssl

Upgrade puma gem to version 4.0

Start the development server:

rails s -b 'ssl://lvh.me:3000?key=localhost.key&cert=localhost.crt'

Then access the website:

https://localhost:3000

Lesson:

@byhbt byhbt self-assigned this Jun 3, 2020
@byhbt byhbt added this to the Rails milestone Jun 3, 2020
@byhbt byhbt added the Ruby Learning Ruby on Rails label Jun 3, 2020
@byhbt byhbt added this to To do in Learning Jun 3, 2020
@byhbt byhbt changed the title Https for local development https for local development Jun 3, 2020
@byhbt byhbt removed their assignment Jun 6, 2020
@byhbt byhbt changed the title https for local development Config https for local development Jun 8, 2020
@byhbt byhbt modified the milestones: Rails, First 50 issues Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ruby Learning Ruby on Rails
Projects
Learning
  
To do
Development

No branches or pull requests

1 participant