1. 15 2月, 2016 3 次提交
  2. 13 2月, 2016 1 次提交
  3. 10 2月, 2016 2 次提交
  4. 06 2月, 2016 1 次提交
  5. 04 2月, 2016 2 次提交
  6. 02 2月, 2016 2 次提交
  7. 31 1月, 2016 2 次提交
  8. 30 1月, 2016 1 次提交
    • S
      Add Default Puma Config · 5563c329
      schneems 提交于
      When the `puma` command is run without any configuration options it will detect presence of a `config/puma.rb` file and use that. Currently there is discrepancy between `puma` command and `rails server` but Evan said it would be reasonable to add in reading in config from the default location. I am working on that right now as a feature in puma/puma.
      
      Why do we need this? By default Puma uses 16 threads, and by default ActiveRecord only has 5 threads. Due to the architecture of AR it is guaranteed that if you're running with fewer DB connections than your server has threads you will hit `ActiveRecord::ConnectionTimeoutError ` eventually if your app gets modest amounts of traffic. Since we are providing a default webserver, we should provide reasonable configuration for that webserver.
      
      This PR does a few things, first it sets the default Puma thread count to 5 to mach ActiveRecord's default. It sets the default environment to `"development"` and the default port to 300 so that booting the server with `$ puma` will give you the same default port as `rails server`. It is worth mentioning that by reading in from `PORT` environment variable this config can work with containerized deployments, such as on Heroku. 
      
      We are not using worker processes by default, that way JRuby and windows devs can use this configuration without modification. I went ahead and included a default `on_worker_boot`. It won't be used unless a worker count is specified, that means this config will not use it. Even though it's not being used now It will make someone who wants to try modifying their config to run extra workers easier.
      
      cc/ @pixeltrix
      5563c329
  9. 29 1月, 2016 1 次提交
  10. 24 1月, 2016 2 次提交
  11. 23 1月, 2016 1 次提交
  12. 22 1月, 2016 3 次提交
  13. 19 1月, 2016 3 次提交
  14. 16 1月, 2016 1 次提交
  15. 15 1月, 2016 1 次提交
  16. 02 1月, 2016 2 次提交
  17. 31 12月, 2015 1 次提交
  18. 22 12月, 2015 4 次提交
  19. 21 12月, 2015 2 次提交
  20. 19 12月, 2015 1 次提交
  21. 18 12月, 2015 3 次提交
    • R
      Do not check the version anymore · 840b3dd9
      Rafael Mendonça França 提交于
      Our logic is complex now and we don't need to check the version to asset
      the behavior so I'm removing the checking here.
      840b3dd9
    • M
      Allow normal version updates within a release series · 46d1cc90
      Matthew Draper 提交于
      We originally chose to apply very strict versioning on the `rails` entry
      in the Gemfile, because our future versioning policy was not strongly
      defined.
      
      Now it is, and our policy is very much designed on the expectation that
      people will regularly update to the latest patch level in their release
      series... so we should encourage that.
      
      Of course, Gemfile.lock will do its job and prevent unplanned updates,
      just as it does for every other gem in the bundle... but if you run
      `bundle update`, we want to get you the latest bug/security fixes
      without requiring a manual edit of the Gemfile entry.
      
      Our current version could be a few different shapes, so it takes a bit
      of work to find the right specifier, but in principle, we match anything
      of the form x.y.*, where x.y matches our current release series.
      46d1cc90
    • D
  22. 17 12月, 2015 1 次提交