passenger

Deploying Django app using passenger

白昼怎懂夜的黑 提交于 2019-12-04 20:05:18
问题 I can get through everything on their wiki - and then I'm lost. http://wiki.dreamhost.com/Django I have a blank Django template, and whenever I try to change anything I get a 500 internal server error. I have completely developed my django app locally and just want to host it online - figured it would be easy but am slowly learning that it is not. I upload my app "videos" to this directory and then put it into the installed apps and ran "python manage.py syncdb", which finds no fixtures

Do apps running in Phusion Passenger need to reconnect ActiveRecord on fork?

冷暖自知 提交于 2019-12-04 19:02:31
Per this documentation: http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_smart_spawning_gotcha_1_unintentional_file_descriptor_sharing Socket connections continue to be shared after a Smart spawn operation. The example listed is for Memcached. Does one have to similarly reconnect ActiveRecord in this case as well? Something like: PhusionPassenger.on_event(:starting_worker_process) do |forked| if forked # We're in smart spawning mode. ActiveRecord.establish_connection(...) else # We're in conservative spawning mode. We don't need to do anything. end end passenger automatically

Rails 3.1 application deployment tutorial

独自空忆成欢 提交于 2019-12-04 18:52:58
问题 I'm looking for a good deployment tutorial for a Rails 3.1.1 application on a server. And by good I actually mean complete. The reason I'm posting this question is that although there are tons of tutorials out there on the web (google, blogs, books, other stackoverflow questions etc...) all of them seem to focus either on a problem with the deployment process or make some assumptions about the deployment environment that do not match with what I need. I realize that deploying a Rails app on a

Can't get Flask running using Passenger WSGI on Dreamhost shared hosting

∥☆過路亽.° 提交于 2019-12-04 18:32:21
问题 I'm trying to get a Flask "hello world" application working on a Dreamhost shared server, following the instructions on their wiki, but I'm not having any luck. My Flask application is the "hello world" one from the Flask quickstart guide: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__ == '__main__': app.run() Which I've got in a file called "hello.py" in a folder called mysite, as per the DH wiki instructions. My passenger

Phusion Passenger + Nginx Virtual Host Configuration for Ruby on Rails Application in Debian 6

↘锁芯ラ 提交于 2019-12-04 18:25:28
What my question is how do i map all the instances with port 80 with appropriate identical sub domains using Phusion Passenger + Nginx under Debian 6 for the following scenario. Note : i am newbie to ruby on rails and server hosting , i unable to express my vision as question , please forgive me if i am wrong or correct me. Hi , i am having an one product developed using ruby on rails , going to host in an dedicated server with 32 GB Ram and 8 Core Server Processor. Each client should have seperate DB and separate rails instance. I am replicating - duplicating code for each client with

max age with nginx/passenger/memcached/rails2.3.5

孤街醉人 提交于 2019-12-04 17:26:24
I notice that in my production enviornment (where I have memcached implemented) in see a cache-control - max-age header in firebug, anytime I am looking at an index page (posts for example). Cache-Control max-age=315360000 In my dev environment that header looks like following. Cache-Contro private, max-age=0, must-revalidate As far as I know I have not done anything special with my nginx.conf file to specify max age for regular content, I do have expires-max set for css, jpg etc. here is my nginx.conf file.. http://pastie.org/1167080 So why is this cache-control is being set? How can I

Rails app moved to production server gives “dump format error for symbol” error

元气小坏坏 提交于 2019-12-04 17:07:19
问题 I've just moved my rails app from the development to deployment server. I've installed passenger, but I wanted to try with rails s to make sure all was running fine (this is the first time I develop and deploy a rails application). Specs are: Ruby 1.9.3 with RVM, mod_passenger, Rails 3.2.3. All installed correctly and I've also enabled the Apache module. By the way something is going wrong (passenger keeps sayng "Error message: Unknown key: class".) Running rails s is giving a weird error

Rack / Passenger fails on Dreamhost

别说谁变了你拦得住时间么 提交于 2019-12-04 16:04:22
I am new to Rails & Ruby and have been following the http://ruby.railstutorial.org/ruby-on-rails-tutorial-book and amy trying to deploy the demo app to my Dreamhost passenger enabled host and when I try to run the app if fails with: Ruby (Rack) application could not be started and the following backtrace (formatting the best I can): # File Line Location 0 /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/setup.rb 10 in `exit' 1 /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/setup.rb 10 2 /usr/lib/ruby/1.8/rubygems/custom_require.rb 36 in `gem_original_require' 3 /usr/lib/ruby/1.8

What are the main reasons for passenger server shut down periodically?

情到浓时终转凉″ 提交于 2019-12-04 15:51:46
In my rails application, I am using Apache + ruby 1.9.2p180 + Rails 3.0.5 + Phusion Passenger version 3.0.13 Can somebody please tell me why my passenger shut down periodically. Somebody please help This is the last error after which the application stops working [Fri Aug 31 02:07:23 2012] [error] [client 141.212.121.10] Premature end of script headers: [ pid=17952 thr=1 file=ext/apache2/Hooks.cpp:817 time=2012-08-31 02:07:23.257 ]: The backend application (process 13680) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check

Passenger & Nginx => 502 Bad Gateway Errors in Production

霸气de小男生 提交于 2019-12-04 15:09:15
问题 I am running Nginx 1.0.6, Passenger 3.0.9, Rails 3.1.1, Ruby 1.9. In my production environment I am seeing the following intermittent warnings in my nginx_error.log file: 2011/11/22 14:44:40 [warn] 23288#0: *474 an upstream response is buffered to a temporary file /opt/nginx/proxy_temp/2/00/0000000002 while reading upstream, client: 69.172.88.178, server: www.memverse.com, request: "GET /show_all_my_verses HTTP/1.1", upstream: "passenger:unix:/passenger_helper_server:", host: "www.memverse