简体   繁体   English

如何清除每次访问位于Heroku上的Rails应用程序时保存并显示的默认用户名?

[英]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.

相关问题 我的应用程序在Heroku中托管的ruby on rails中出错 - Error in my app in ruby on rails hosted in heroku 我如何创建从WordPress(驻留在wsynth上)到Heroku托管的Rails应用的301重定向? - How do I create 301 redirect from WordPress (hosted on wsynth) to a Rails app hosted on Heroku? 希望在访客访问我的应用程序轨道时调用每次都会执行的方法 - Want to call method that will execute everytime, when visitor visit my app rails 如何确保在我的GitHub存储库中使用最新代码更新在Heroku上托管的Ruby on Rails应用程序? - How to ensure my Ruby on Rails app hosted on Heroku is updated with latest code in my GitHub repo? 如何从 Heroku 中托管的 Rails API 应用程序在浏览器中设置 cookie,该应用程序在 Netlify 中托管的 React 应用程序中运行前端? - How can I set cookies in a browser from a Rails API app hosted in Heroku running the frontend in a React app hosted in Netlify? 将heroku托管的Rails应用程序连接到我创建的单独服务 - Connecting heroku hosted rails app to a separate service that I created 如何在我的heroku托管的Ruby on Rails Web应用程序中调试“应用程序错误”? - How can I debug a “Application Error” in my heroku hosted Ruby on Rails web application? 如何为heroku上托管的Rails应用程序设置QuotaGuard Static? - How to setup QuotaGuard Static for a Rails app hosted on heroku? 每次重新启动Rails应用程序时如何自动填充memcached? - How can I populate memcached automatically everytime I restart my Rails app? 我应该如何构建Rails 3应用程序以在Heroku上进行Beta测试? - How should I structure my Rails 3 app for beta testing on Heroku?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM