passenger

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

情到浓时终转凉″ 提交于 2019-12-05 10:24:41
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? You need to touch a file to have phusion clear out, like: touch /webapps/mycook/tmp/restart.txt See the docs 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. First, have you cleared your browsers cache? You can do this through the browser menus, in options somewhere. The

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

梦想与她 提交于 2019-12-05 09:11:44
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 trace: /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/template_handlers

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

三世轮回 提交于 2019-12-05 07:17:21
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 STAT version 1.2.8 STAT pointer_size 64 STAT rusage_user 7.085922 STAT rusage_system 13.275981 STAT

Foreman not working with NGINX

安稳与你 提交于 2019-12-05 06:06:58
I'm trying to use Foreman (version 0.31.0) to manage our application's processes but I'm not having much luck with nginx (nginx/1.0.10 + Phusion Passenger 3.0.11). Here's the relevant line from my Procfile: nginx: sudo /home/ubuntu/nginx/sbin/nginx When I start the app, Foreman reports that nginx is started and then immediately terminated: $ foreman start 21:18:28 nginx.1 | started with pid 27347 21:18:28 nginx.1 | process terminated 21:18:28 system | sending SIGTERM to all processes However, nginx is actually running , even though Foreman reports otherwise. Similarly, if I export to Upstart:

nginx rewrite rules with Passenger

梦想的初衷 提交于 2019-12-05 05:23:13
问题 I'm trying to migrate to nginx from Apache using Passenger in both instances to host a Rails app. The app takes a request, which is for an image- if the image exists at /system/logos/$requestedimage then it should get served, or it should be allowed to hit the Rails app to generate it if needed (where it is then cached to /system/logos). In Apache I used the following: RewriteCond %{DOCUMENT_ROOT}/system/logos/%{REQUEST_FILENAME} -f RewriteRule ^/(.*)$ http://assets.clg.eve-metrics.com/system

Why are my assets not served through a reverse proxy in apache

穿精又带淫゛_ 提交于 2019-12-05 03:29:12
I have a rails app running on passenger standalone, which is working perfectly. I am running apache, and use a VirtualHost with a reverse proxy to serve my rails app. This works. However my assets are not being served through the vhost, but give a proxy error. My httpd.conf <VirtualHost *:80> ServerName greekpeep_rails.nightowls.co DocumentRoot /home/railsapps/www/greekpeep/public ProxyPass / http://127.0.0.1:4000 ProxyPassReverse / http://127.0.0.1:4000 <Directory /home/railsapps/www/greekpeep/public> Allow from all Options -MultiViews </Directory> </VirtualHost> The proxy error Proxy Error

Unicorn vs Passenger Standalone behind nginx [closed]

拟墨画扇 提交于 2019-12-05 01:35:16
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm trying to decide between Unicorn and Phusion Passenger Standalone (formerly Phusion Passenger Lite). I want to host multiple apps on my server. I have nginx running and listening to port 80. I need a webapp server that I can proxy

Rails/Passenger/Node.js: ExecJS “Could not find a JavaScript runtime”

半世苍凉 提交于 2019-12-05 00:12:46
I'm trying to use Node.js as the JavaScript runtime for my Rails application. I'm using the Phusion Passenger module with Nginx as my web server on Ubuntu 12.0.4. Every time I visit my Rails application I get an error page that appears to be generated from Passenger stating that ExecJS can't find a JavaScript runtime. I've seen numerous posts on here that either suggest that you install Node--which I have done via sudo apt-get install node --or suggest using therubyracer + execjs in your Gemfile. That latter solution does in fact work, but I would really prefer to use Node, especially since

How to Stop Phusion Passenger

匆匆过客 提交于 2019-12-04 21:57:27
I use the Phusion Passenger module (mod_passenger) for the Apache HTTP Server and Capistrano for deployment of rails applications. I want to 'stop' a Ruby on Rails application from Phusion Passenger. How can i do that? Thanks in advance You can't stop it without editing the Apache config and taking out or commenting out the VirtualHost block for the Rails application and then restarting the Apache server. Do you want to stop it for good? Edit the apache conf file, change the DocumentRoot of the virtual host to not point to a Rails installation, then apachectl graceful . If you want to fully

Phusion Passenger with Ruby 1.8 and 1.9?

倖福魔咒の 提交于 2019-12-04 20:10:20
问题 How would I go about running two separate Rails applications using Phusion Passenger with one using Ruby 1.8.x and the other using Ruby 1.9.x ? I'm running Redmine which isn't Ruby 1.9.x compatible, and the other application is a home grown app. I'm using Apache 2.2.x with Passenger 2.2.4. Is this even possible ? 回答1: I ended up running Nginx with Passenger and Ruby 1.9 on port 80, and then proxying off my other virtual hosts to Apache 2.2 on port 8080 with Passenger and Ruby 1.8. Win! 回答2: