Comments (6)
Rails 2.3.x should be supported, we might have to add docs there.
from puma.
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.
It needs more support than dropping a config.ru file into RAILS_ROOT
?
from puma.
Someone needs to release a rails 2 rack adapter.
from puma.
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.
@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)
- Puma and Puma Dev Linux issue
- Phased-Restart Causes Action Cable Connection Loss on Rails App Restart HOT 3
- Add a hook for "before shutdown" HOT 6
- Systemd watchdog kills puma during hot restart. HOT 4
- NoMethodError: undefined method `release' for Rack:Module error at "rails s" initialization time HOT 5
- Staging environment, request.ENV['HTTP_HOST'] displays 2 urls when it should be a single url HOT 1
- HttpParserError raised when body (chunk) exceeds 4096 bytes does not end with "\r\n" HOT 4
- undefined method `log_writer' for #<Puma::Launcher on usin plugin :solid_queue in puma HOT 1
- `TestWorkerGemIndependence#test_changing_nio4r_version_during_phased_restart` fails in head builds
- Option to restrict cipher suites for TLS1.3
- Requests with a caret (`<` or `>`) in a query parameter raise a `Puma::HttpParserError` HOT 10
- Random freezes in dev mode
- Puma doesn't start the Rails app after run
- "undefined method `on_booted` for nil:NilClass" on "pumactl start" HOT 2
- Large number of workers are booting too long or not booting the first time HOT 4
- What options are not available when using `rails s`? HOT 1
- MAX_CHUNK_HEADER_SIZE = 4096 is too small for podman HOT 6
- Puma config get evaluated twice with pumactl HOT 3
- question about puma architecture
- Windows - Puma compiled without ssl support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puma.