passenger

Rails 3.2 f.file_field causes routing error

狂风中的少年 提交于 2019-12-07 16:48:48
问题 Tested on rails 3.2.12 and 3.2.11. In another rails 3.2.11 project I do not have this issue with f.file_field , but in current one I do and can't find a reason for this strange behaviour, so here is my question. I have a weird problem with update action. Here are relevant parts of code: routes: get "signup" => "users#new", :as => "signup" get "profile" => "users#profile", :as => "profile" resources :users do member do get :activate end end controller: def update @user = User.find(params[:id])

Premature end of script headers: media ( Issue related to :rails app deployment+passenger+ubuntu+apache)

百般思念 提交于 2019-12-07 13:33:51
问题 i just setup a linode server and deploy my rails 3 app on it.its up and running.The problem is that some images are not showing up in the production.locally they are perfectly working.i double checked the log file(production.log) but nothing found.then i check server error.log file that says. [Sat Dec 29 22:54:14 2012] [error] [client 182.177.228.157] Premature end of script headers: media, referer: http://50.116.57.152/app?v=11&o=33 Check out http://50.116.57.152/app?v=11&o=33 for live demo.

Issue when trying to run passenger on Apache

柔情痞子 提交于 2019-12-07 12:20:56
问题 I am getting this issue when running httpd -t httpd: Syntax error on line 545 of /private/etc/apache2/httpd.conf: Syntax error on line 1 of /private/etc/apache2/other/passenger.conf: Cannot load /Users/sbaidon/.rvm/gems/ruby-2.2.5/gems/passenger-5.3.5/b uildout/apache2/mod_passenger.so into server: dlopen(/Users/sbaidon/.rvm/gems/ruby-2.2.5/gems/passenger-5.3.5/buildout/apache2/mod_passenger.so, 10): no suitable image found. Did find:\n\t/Users/sbaidon/.rv m/gems/ruby-2.2.5/gems/passenger-5.3

Using passenger to run both Rails 3.0 and Rails 3.1 app (using different rvm gemsets)

纵饮孤独 提交于 2019-12-07 11:49:44
问题 I just followed these directions for installing a new rvm gemset and installing rails-3.1.0.rc2 on my local machine. At first I was getting a Passenger error saying the rake-0.9.2 gem could not be loaded, but I found this reminding me to run "$ passenger-install-apache2-module". It installed fine prompted me to add the following to my Apache config file (/etc/apache2/httpd.conf): LoadModule passenger_module /Users/robs/.rvm/gems/ruby-1.9.2-p180@rails-3.1/gems/passenger-3.0.7/ext/apache2/mod

Phusion Passenger Error: http.Server.listen() was called more than once

[亡魂溺海] 提交于 2019-12-07 10:49:02
问题 I want to execute a simple node-http-proxy example on phusion passenger with nginx. You can find this example code on https://github.com/nodejitsu/node-http-proxy. var http = require('http'), httpProxy = require('http-proxy'); // // Create your proxy server // httpProxy.createServer(9000, 'localhost').listen(8000); // // Create your target server // http.createServer(function (req, res) { res.writeHead(200, { 'Content-Type': 'text/plain' }); res.write('request successfully proxied!' + '\n' +

uninitialized constant CarrierWave

淺唱寂寞╮ 提交于 2019-12-07 10:23:32
问题 I am deploying my first rails app using passenger and capistrano. every thing is fine until i faced this error when I tried to launch the app in the browser. Error message: uninitialized constant CarrierWave Exception class: NameError you can see the message in details at http://test.ajhezaty.com/ the site works perfectly locally and CarrierWave uploading the image correctly. I tried to restart the VPS server by running sudo /etc/init.d/httpd2 restart but it didnt fix the issue. for your

CSS available but not rendering when push to production [Rails app]

亡梦爱人 提交于 2019-12-07 07:44:33
问题 For some strange reason I cannot get my Rails app to render the CSS files on the server when running in production mode. I am running a Passenger + Nginx setup. When I hit the public URL, I can see the app. The problem is, no styles are being applied. When I use the Chrome dev tools to view the CSS being rendered, I see that the file is present on the server, with all the CSS in it. However, if I look at a specific component, I see something strange: a:-webkit-any-link { color: -webkit-link;

How do I clear the cache of Ruby Phusion Passenger in Ubuntu?

别等时光非礼了梦想. 提交于 2019-12-07 05:31:54
问题 I've tried restarting apache and the cached pages still appear, so there must be a folder someplace. I don't have a 'public/cache', so what other places should I look? Is there a URL flag that could trigger this effect as well? 回答1: You need to touch a file to have phusion clear out, like: touch /webapps/mycook/tmp/restart.txt See the docs 回答2: I'm in development mode. I discovered I had to restart the apache service and clear the browser cache to get my changes to appear 100% of the time.

RVM, Ruby 1.9.2, Rails 2.3.8, Passenger and “invalid byte sequence in US-ASCII”

删除回忆录丶 提交于 2019-12-07 04:51:16
问题 I just started the upgrade process from Ruby 1.8.7 to Ruby 1.9.2 (using RVM). I have all my applications running using 'script/server' (or 'rails server') with 1.9.2, however, only Rails 3.0.0 RC applications work with Passenger. The error message given by Rails 2.3.8 applications is: invalid byte sequence in US-ASCII I'm guessing that this is a Passenger issue. I installed Passenger 2.2.15 using the RVM guide found here. Any ideas how to fix this bug? Thanks. I've updated to include a stack

Rails, Passenger and Memcached: Unable to find server during initialization

瘦欲@ 提交于 2019-12-07 04:03:53
问题 I hope someone can help me with a problem that I am certain is a user error. The configuration details below work in all my other environments including integration, development and qa. However, the production servers give the following error: <ActionController::Session::MemCacheStore:0x2b45f6acb248> unable to find server during initialization. When I telnet to the memcached box from the server having the problem and run 'stats', I get: STAT pid 16136 STAT uptime 7398638 STAT time 1275059978