Tag: web deployment

puma生产服务器在后台:omniauth记录到stdout失败导致错误

我使用rails + puma作为我的生产服务器。 我使用httpd设置虚拟机并将请求转发给localhost:3000。 我用来启动我的puma服务器的命令是(已在app文件夹中) puma -e production -p 3000 & 当我仍然使用ssh登录服务器时,我的网络应用程序的一切都很好。 只有一些日志实际出现在屏幕上(我没注意它)。 但是,当我退出ssh会话时。 我不能使用omniauth(gem)。 我查看了服务器日志: Errno::EIO (Input/output error @ io_write – ): 我在网上寻找这个 – 这是一个IO连接问题,在我的情况下的原因应该是产生美洲狮的父进程已经完成但是puma试图记录它的东西。 所以我使用重定向,希望控制台没问题: puma -e production -p 3000 > log/console.log & 但问题仍然存在。 到目前为止,我认为它只与omniauth有关:它总是记录到stdout,即使我这样做“ https://github.com/intridea/omniauth/issues/583 ”。 所以现在我想我可以尝试更改omniauth的记录器或尝试“给stdout”到omniauth,即使它在后台运行 非常感谢:)

未初始化的常量ActionController :: Routing(NameError)

我试图在Linux服务器上部署我的应用程序时收到此错误。 Versãoservidor:x86_64-pc-linux-gnu上的PostgreSQL 9.3.4,由x86_64-pc-linux-gnu-gcc编译(Gentoo 4.8.1-r1 p1.2,pie-0.5.7)4.8.1,64-位 uninitialized constant ActionController::Routing (NameError) /home/divulgapocos/apps_rails/divulgapocos/config/initializers/new_rails_defaults.rb:14:in `’ /opt/ruby-2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:652:in `block in load_config_initializer’ /opt/ruby-2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:166:in `instrument’ /opt/ruby-2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:651:in `load_config_initializer’ /opt/ruby-2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:616:in `block (2 levels) in ‘ /opt/ruby-2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:615:in `each’ /opt/ruby-2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:615:in `block in ‘ /opt/ruby-2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec’ /opt/ruby-2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run’ /opt/ruby-2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers’ /opt/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each’ /opt/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component’ /opt/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from’ […]

Capistrano无法创建符号链接:文件存在

我有Capistrano 3的Rails 4应用程序。 # deploy.rb set :application, ” set :user, ” set :repo_url, ” set :branch, ‘master’ ask :branch, proc { `git rev-parse –abbrev-ref HEAD`.chomp } set :deploy_to, “/home/#{fetch :user}/apps/#{fetch :application}” set :scm, :git set :format, :pretty set :log_level, :debug set :pty, true set :linked_files, %w{config/application.yml} set :linked_dirs, %w{bin log tmp vendor/bundle public/system public/deploy} # […]

在Heroku上更新到Rails 3.1时的资产管道

我刚刚将我在Heroku上的应用程序从Rails 3.0升级到3.1,并且我正在努力使资产管道工作。 主要问题是我可以从heroku日志中读取以下类型的行,用于每个资产: 2011-09-03T16:35:28+00:00 app[web.1]: cache: [GET /assets/border-a3c571a354b9381740db48aeebfaa63a.jpg] miss 如果我正确理解了管道,那么对于我从浏览器发出的每个请求,都不应该“错过”,但应该在缓存中找到它。 阅读Heroku文档,您可以找到以下解释: Rails 3.1 provides an assets:precompile rake task to allow the compilation penalty to be paid up front rather than each time the asset is requested. If this task exists in your app we will execute it when you push new code. 但是,“资产:预编译”任务应该如何? 我尝试从头开始使用rails 3.1构建一个项目以试图找出,但在裸项目中没有这样的任务。 […]