首页 \ 问答 \ 从头开始重新开发一个应用程序?(Re-developing an app from scratch?)

从头开始重新开发一个应用程序?(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
更新时间:2023-02-23 14:02

最满意答案

我终于找到了问题的根源。 结论是当没有任何自定义类的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 ...
  • (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
  • 我终于找到了问题的根源。 结论是当没有任何自定义类的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 ...
  • 在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 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。