Coder Social home page Coder Social logo

Rails 2 support about puma HOT 6 CLOSED

puma avatar puma commented on April 28, 2024
Rails 2 support

from puma.

Comments (6)

rkh avatar rkh commented on April 28, 2024

Rails 2.3.x should be supported, we might have to add docs there.

from puma.

 avatar commented on April 28, 2024

I was able to get Puma working with Rails 2.3.14 by doing the following:

Freeze Rails

$ rake rails:freeze:gems

Modify action_controller in file: vendor/rails/actionpack/lib/action_controller.rb by changing:

gem 'rack', '~> 1.1.0'

To:

gem 'rack', '~> 1.4.0'

Create config.ru file in project root:

http://guides.rubyonrails.org/v2.3.11/rails_on_rack.html

Then instead of using script/server, use:

$ rackup -s puma

Disclaimer: There may be issues running Rails 2.3 with Rack 1.4???

These links may be of use:
http://wiki.dreamhost.com/Ruby_on_Rails#Rails_2.3.5_-_Rack_1.0_already_activated_.28fix.29
http://stackoverflow.com/questions/1814856/bypassing-rack-version-error-using-rails-2-3-5

from puma.

hron84 avatar hron84 commented on April 28, 2024

It needs more support than dropping a config.ru file into RAILS_ROOT?

from puma.

evanphx avatar evanphx commented on April 28, 2024

Someone needs to release a rails 2 rack adapter.

from puma.

Hareramrai avatar Hareramrai commented on April 28, 2024

Hi there,
I am trying to update the our application server to use puma from unicorn. I am using Rails 2.3.18 & Ruby 1.9.3. I have followed all steps given in https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server . But I got the bellow error in our server log.

foreman start -p 3000
15:10:55 web.1            | started with pid 5395
15:10:55 worker.1         | started with pid 5397
15:10:55 monitor_daemon.1 | started with pid 5400
15:10:58 web.1            | [5399] Puma starting in cluster mode...
15:10:58 web.1            | [5399] * Version 2.11.3 (ruby 1.9.3-p484), codename: Intrepid Squirrel
15:10:58 web.1            | [5399] * Min threads: 1, max threads: 1
15:10:58 web.1            | [5399] * Environment: development
15:10:58 web.1            | [5399] * Process workers: 3
15:10:58 web.1            | [5399] * Preloading application
15:10:58 web.1            | [5399] ERROR: No application configured, nothing to run
15:10:58 web.1            | exited with code 1
15:10:58 system           | sending SIGTERM to all processes
15:10:58 worker.1         | terminated by SIGTERM
15:10:58 monitor_daemon.1 | terminated by SIGTERM

Please help me on this.
Thanks,
Hare

from puma.

hron84 avatar hron84 commented on April 28, 2024

@Hareramrai you just missed a very important point of the documentation.
The documentation says the following:

This should point at your applications config.ru, which is automatically generated by Rails when you create a new project.

The second part of the sentence is simply not true in your case, since Rails 2.3.x does not generate config.ru automatically, you have to write one for yourself.

I recommend you to read this thread on StackOverflow about the topic, both the opening post and the linked solution too.

from puma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.