从头开始重新开发一个应用程序?(Re-developing an app from scratch?)
这不是一个编程问题,但我觉得这是一个正确的地方。
市场上有一个Android应用程序。 我们的工作是以巨大的方式升级应用程序。 我们决定从头开始一个新项目,这有很多改变。
我的问题是: 为了能够替换(升级)Play商店中的现有应用 ,我们应该怎么做? 保持相同的包名? 或者标志键是否够用? 或两者? 或者是什么?
感谢您的帮助,并感到抱歉,如果这不是正确的地方。
This is not a programming question but I feel SO is the right place to put it in.
There is an android app in the market. Our job is to upgrade the app in a huge way. There is so much to change to the point where we decided to start a new project from scratch.
My question is: in order to be able to replace (upgrade) the existing app in the Play store, What should we do? Keep the same package name? or the sign key is enough? or both? or what?
Thanks for your help and sorry if this is not the right place.
原文:https://stackoverflow.com/questions/11367507
最满意答案
我终于找到了问题的根源。 结论是当没有任何自定义类的vanilla Rails应用程序中发生状态错误(404,500等)时,Heroku将提供基本错误页面。 在我确定之后,它有助于指导诊断。
通过config / environments / staging.rb代码,我看到他们的文档中规定的sentry-raven的LOC应设置为false:
config.action_dispatch.show_exceptions = false #per sentry-raven docs
将此设置恢复为true后,状态错误页面开始运行:
config.action_dispatch.show_exceptions = true #status error pages work again!
所以,我可能误解了哨兵乌鸦的文档并将其错误地合并到Rails应用程序配置中,或其他方面,但这就是问题的结果。 所以,如果您的Heroku托管Rails应用程序运行良好,然后在任何状态错误时遇到“死亡白屏”,这是检查您的诊断尝试的另一件事。
I finally got to the bottom of the issue. The conclusion is that Heroku will serve the basic error pages when a status error (404, 500, etc) happens in a vanilla Rails application without any custom classes. After I determined that, it helped direct the diagnosis.
Looking through the config/environments/staging.rb code, I saw the LOC that sentry-raven stipulated in their docs should be set to false:
config.action_dispatch.show_exceptions = false #per sentry-raven docs
After setting this back to true, the status error pages started functioning:
config.action_dispatch.show_exceptions = true #status error pages work again!
So, I may have been misunderstanding sentry-raven's docs & incorporating it incorrectly into the Rails app configs, or something otherwise, but that's what the issue turned out to be. So, if you your Heroku hosted Rails app is performing fine and then runs into the "white screen of death" upon any status error, this is one more thing to check in your attempts to diagnose.
相关问答
更多-
从日志中读取: /app/vendor/bundle/ruby/1.9.1/gems/bundler-1.2.0/lib/bundler/rubygems_integration.rb:147:in block in replace_gem': Please install the postgresql adapter: gem install activerecord-postgresql-adapter `(pg不是bundle的一部分。将它添加到Gemfile。)(LoadError) Heroku使 ...
-
我明白了,遗漏了一部分: app.secret_key = 'abrakadabra' i got it, missing part: app.secret_key = 'abrakadabra'
-
尝试从Gemfile中的资产组中移出gem'trip gem 'twitter-bootstrap-rails' 。 或者尝试在application.js中添加bootstrap而不是twitter/bootstrap 希望这可以帮助! Try moving out gem 'twitter-bootstrap-rails' from your assets group in your Gemfile. Or try adding bootstrap instead of twitter/bootstra ...
-
我告诉Heroku支持,他们说我应该从我的Git文件中删除.bundle/config ,因为它阻止我的production宝石安装,这禁止rails_12factor向我提供有关错误的信息。 一旦做出这个改变, heroku logs实际上开始产生有用的信息,我能够调试。 I messaged Heroku support and they said that I should remove .bundle/config from my Git files because it was preventin ...
-
Rails Heroku应用程序错误(Rails Heroku app errors)[2022-08-29]
(PG :: UndefinedTable:错误:关系“类别”不存在 你没有一个表“类别” heroku run rake db:migrate (PG::UndefinedTable: ERROR: relation "categories" does not exist You don't have a table "categories" heroku run rake db:migrate -
Heroku上的Rails应用程序 - 状态500错误=>空白页面(Rails App On Heroku - Status 500 Error => Blank White Page)[2023-04-09]
我终于找到了问题的根源。 结论是当没有任何自定义类的vanilla Rails应用程序中发生状态错误(404,500等)时,Heroku将提供基本错误页面。 在我确定之后,它有助于指导诊断。 通过config / environments / staging.rb代码,我看到他们的文档中规定的sentry-raven的LOC应设置为false: config.action_dispatch.show_exceptions = false #per sentry-raven docs 将此设置恢复为true ... -
每当应用程序发生异常时,都不会显示heroku的自定义错误页面。 您的应用程序负责显示此类页面。 请参阅将rails_app与rails 3.2一起使用 。 当heroku发生错误时,会出现错误页面。 关于错误页面的devcenter页面说明了关于测试错误页面的信息: 要测试错误页面,可以推送错误部署,例如将语法错误放入密钥配置文件,或者在应用程序上创建一个休眠35秒的路径(从而触发错误H12请求超时)。 The heroku's custom error page isn't displayed when ...
-
Heroku 500错误(Heroku 500 error)[2022-04-26]
在config/environment.rb文件中,更改smtp_settings的配置,如下所示: ActionMailer::Base.smtp_settings = { :address => 'smtp.sendgrid.net', :port => '587', :authentication => :plain, :user_name => ENV['SENDGRID_USERNAME'], ## Refer to key SENDG ... -
检查这个控制器/app/app/controllers/links_controller.rb:34:语法错误,意外的keyword_end,期待输入结束(SyntaxError),你很可能错过了一个end Check this controller /app/app/controllers/links_controller.rb:34: syntax error, unexpected keyword_end, expecting end-of-input (SyntaxError), you are p ...
-
日志中的重要部分是: “ActiveRecord :: StatementInvalid(PG :: DatatypeMismatch:错误:WHERE的参数必须是布尔类型,而不是类型整数” 在它下面读取错误是在app/controllers/carts_controller.rb:35 https://github.com/kbachand/ginger_ails/blob/master/app/controllers/carts_controller.rb#L35 在这一行你有: @user = Use ...