How do you handle SSL in development?

前端 未结 2 1012

I have an application that uses HTTPS for some of its routes in conjunction with the ssl_requirement plugin. It\'s deployed and is working fine in production.

The questi

2条回答
  •  一向
    一向 (楼主)
    2021-02-03 10:42

    As your rails apps get more complicated and you want to use advanced features like SSL your best bet is to switch to a development environment which more closely matches your production environment. This will allow you to create your own SSL certs and test in a way which will mirror the way your users will use your application.

    I suggest moving to the same webserver as you use in production, which you've mentioned is apache/passenger.

    In a related question... how do you manage your test environment with ssl? For this I'm currently hacking up my routes as you're doing. Is there a better way?

提交回复
热议问题