Changing database.yml , application.yml and commenting :redirect_to_https