[英]How to clear a default username that is saved and shown everytime I visit my rails app hosted on heroku?
I'm a newbie to development and I've been trying to debug something and haven't had much luck. 我是开发的新手,我一直在尝试调试某些东西,但运气不太好。 Please bare with rookie knowledge.
请了解新手知识。
I have built a small and simple rails app that I deployed on heroku where you have to sign up as a user by creating a profile, after which you can enter an address or zipcode to find the nearest gyms in your vicinity, which triggers the google places/geocoder api and brings you some results. 我已经构建了一个小型且简单的Rails应用程序,该应用程序已部署在heroku上,您必须通过创建个人资料来注册成为用户,然后才能输入地址或邮政编码来查找附近的最近健身房,从而触发Google地方/地理编码器api,并为您带来一些结果。 The app works fine, but for some reason the version on heroku by default has a user that is stored or cached?
该应用程序运行良好,但是由于某种原因,默认情况下,heroku上的版本具有存储或缓存的用户? when I land on my page.
当我登陆页面时。 I did heroku pg:psql to check and I dont even see that user in my heroku database.
我做了heroku pg:psql的检查,甚至没有在我的heroku数据库中看到该用户。 On my local environment it works fine and no users are shown by default on the root page of my app when I run my server.
在我的本地环境中,它运行良好,并且在运行服务器时,默认情况下,用户的根页面上不会显示任何用户。
I looked at older threads on SO and I saw somebody saying to type heroku run rake tmp:clear
but that gave me this response: 我查看了SO上的旧线程,发现有人说键入heroku run
rake tmp:clear
但这给了我以下响应:
Running `rake tmp:cache:clear` attached to terminal... up, run.3757
stty: standard input: unable to perform all requested operations
Any advice/help is greatly appreciated. 任何建议/帮助将不胜感激。 I only have about two weeks worth of rails knowledge!
我只有大约两周的Rails知识! Thank you.
谢谢。
Solved ! 解决了 ! I thought it was related to my code or some inconsistency that happened while I deployed!
我认为这与我的代码或部署时发生的一些不一致有关! I stupidly had saved that user when I originally created him when my browser(chrome) prompted me, save password for user?
当我的浏览器(chrome)提示我时,我最初创建该用户时就愚蠢地保存了该用户,为该用户保存密码吗? I should have just chosen never or closed out of it.
我应该选择永不选择或不选择它。 I just when into my settings and manage passwords and deleted the fact that I had chosen to save it.
我只是在进入设置并管理密码时就删除了选择保存的事实。 I love how answers get solved right after you ask for help.
我喜欢在您寻求帮助后立即解决问题的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.