小编fas*_*tch的帖子

为什么我不能提交"应用详情页面"?

据我所知,我已经为我的Facebook App Detail页面输入了所有必需的信息(并被FB接受).我认为我遵守App Center指南并且符合所有要求.

我仍然得到:

Invalid Submission
Before you can submit your app detail page you must first comply with
App Center Guidelines. Please make sure you have specified how your app
integrates with Facebook and have met all the requirements.
Click here to update your integration.
Run Code Online (Sandbox Code Playgroud)

我怎样才能弄清楚FB认为缺少什么/错误?

我想提交它!提前致谢!

顺便说一句:我在哪里可以正式提出这个问题?是否有开发人员的"官方支持"或社区的努力是FB在这方面做出的最大努力?

web-applications facebook-apps

9
推荐指数
1
解决办法
758
查看次数

在nginx + Unicorn上加载错误的网关错误(Rails 3 app)

我有一个Rails(3.2)应用程序,它运行在云平台上的nginx和unicorn上."盒子"在Ubuntu 12.04上运行.

当系统负载大约为70%或更高时,nginx突然(并且看似随机)开始抛出502 Bad gateway错误 ; 当负荷减少时,没有什么比这更好的了.我已经尝试了不同数量的内核(4,6,10 - 我可以"改变硬件",因为它在云平台上),情况总是一样的.(CPU负载类似于系统负载,用户空间为55%,其余为系统和被盗,有足够的可用内存,没有交换.)

502通常分批进行,但并非总是如此.

(我每个核心运行一个独角兽工作者,以及一个或两个nginx工作者.在10个核心上运行时,请参阅下面配置的相关部分.)

我真的不知道如何跟踪这些错误的原因.我怀疑它可能与麒麟工人无法服务(及时?)有关但它看起来很奇怪,因为它们似乎没有让CPU饱和,我认为他们没有理由等待IO(但我不喜欢我也不知道如何确保这一点.

请你帮我看看如何找到原因?


Unicorn config(unicorn.rb):

worker_processes 10
working_directory "/var/www/app/current"
listen "/var/www/app/current/tmp/sockets/unicorn.sock", :backlog => 64
listen 2007, :tcp_nopush => true
timeout 90
pid "/var/www/app/current/tmp/pids/unicorn.pid"
stderr_path "/var/www/app/shared/log/unicorn.stderr.log"
stdout_path "/var/www/app/shared/log/unicorn.stdout.log"
preload_app true
GC.respond_to?(:copy_on_write_friendly=) and
  GC.copy_on_write_friendly = true
check_client_connection false

before_fork do |server, worker|
  ... I believe the stuff here is irrelevant ...
end
after_fork do |server, worker|
  ... I believe the stuff here is irrelevant ...
end
Run Code Online (Sandbox Code Playgroud)

和ngnix配置:

/etc/nginx/nginx.conf …

nginx unicorn ruby-on-rails-3

8
推荐指数
1
解决办法
6085
查看次数