小编ard*_*ima的帖子

Logstash日志尾部在浏览器中

所以我使用logstash-forwarder(lumberjack)设置了使用ElasticSearch和Kibana的Logstash 1.4.2,这很好用,但我还想通过类似于papertrail之类的浏览器显示原始日志输出(可能是可搜索的)?

这可能吗,谢谢!

logging elasticsearch paper-trail-gem logstash kibana

12
推荐指数
3
解决办法
6034
查看次数

在浅克隆之后,Git推送到新的遥控器

是否有可能做到这一点?我有一些分支和很多提交,我正在尝试,
git push - --all origin但我得到了shallow update not allowed.

提前致谢.

git github

7
推荐指数
1
解决办法
907
查看次数

Python命令行复选框

我是Python 2.7的新手,但我想知道是否可以使用用户可以通过命令行选择的复选框.

我所知道的唯一例子是自耕农(下图)但它可能不是用Python编写的.

在此输入图像描述

谢谢

python checkbox frontend command-line-interface python-2.7

6
推荐指数
2
解决办法
3382
查看次数

Heroku没有发送Mandrill电子邮件的Rails

我正在启动一个rails应用程序,并希望使用Mandrill确认Devise注册以及将来的其他功能.昨天它有时在当地工作,所以我想也许我会尝试Heroku.

当使用Heroku的Mandrill附加组件时,它可以工作,但是如果我将ENV凭据更改为我自己的Mandrill帐户,则电子邮件会在我自己的帐户上积压.

我正在使用两封个人电子邮件,gmail和一个学校电子邮件进行测试.

我还使用figaro将我的环境变量复制到Heroku.

production.rb:

config.action_mailer.smtp_settings = {
:address   => "smtp.mandrillapp.com",
:port      => 587,
:user_name => ENV["MANDRILL_USERNAME"],
:password  => ENV["MANDRILL_APIKEY"]
}

# ActionMailer Config
config.action_mailer.default_url_options = { :host => 'herokuapp.com' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = false
Run Code Online (Sandbox Code Playgroud)

development.rb:

config.action_mailer.smtp_settings = {
:address   => "smtp.mandrillapp.com",
:port      => 2525, # I also tried ports 25 and 587
:user_name => ENV["MANDRILL_USERNAME"],
:password  => ENV["MANDRILL_APIKEY"]
}

# ActionMailer Config
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails heroku devise mandrill

5
推荐指数
1
解决办法
2939
查看次数