passenger

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

跟風遠走 提交于 2019-12-22 04:03:44
问题 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

Unicorn vs Passenger Standalone behind nginx [closed]

蓝咒 提交于 2019-12-22 03:52:14
问题 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

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

有些话、适合烂在心里 提交于 2019-12-22 02:57:08
问题 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

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

不打扰是莪最后的温柔 提交于 2019-12-21 22:33:07
问题 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

Passenger Standalone won't restart on touching restart.txt

╄→гoц情女王★ 提交于 2019-12-21 17:02:32
问题 I built a little deploy script that works similar to Capistrano in that way, that it checks out a Rails application to a timestamped directory and sets the current link to that when all went well. The problem is, that on touching the tmp/restart.txt, nothing happens and I wonder if it has something to do with Passenger Standalone being started from within the timestamped directory after cd /path/to/app/current . So if i update the current link, passenger doesn't see the things happening in

Passenger error “library not loaded”

拥有回忆 提交于 2019-12-21 06:48:36
问题 Getting this error from Passenger (with Apache). Not sure what it means... dlopen(/path/to/myapp/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle, 9): Library not loaded: /usr/local/mysql/lib/libmysqlclient.16.dylib Referenced from: /path/to/myapp/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle Reason: image not found - /path/to/myapp/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle The Ruby installed is actually 1.9.2 but the gems are

Rails 4.1 AWS Beanstalk cannot find secret key base

你。 提交于 2019-12-21 05:42:56
问题 I am trying to upload my rails project on AWS Beanstalk. I've already run eb init, eb start and configured the database settings to point to RDS. After I pushed using git aws.push and waited for AWS server to be started, the link provided says: "502 Bad Gateway nginx" In the logs ------------------------------------- /var/app/support/logs/passenger.log ------------------------------------- App 6861 stderr: [ 2014-05-29 13:26:59.1308 6893/0x00000001e50050(Worker 1) utils.rb:68 ]: *** Exception

Do I need to install passenger as a regular gem even though my app uses bundler?

不羁岁月 提交于 2019-12-21 05:38:11
问题 Im trying to setup a new server to host a Rails app and want a clean installation of all the components so i decided to use rvm+bundler. Its my first time setting up a Rails server. I've used bundler with an app before and I understand how it manages the App's dependencies... but since Im installing Passenger and since this is the hosting environment's dependency, I need to do a 'gem install passenger' on the box itself instead of bundling this dependency, right? Or should I be putting

How to deploy a Test App on Dreamhost Rails 3.0.4?

我只是一个虾纸丫 提交于 2019-12-21 05:28:27
问题 All this weekend I have been trying to setup a Rails 3.0.4 app in production on a Dreamhost shared server. I have followed this wiki article to have my own set of rubygems setup on the server. Furthermore, I also installed rvm and ruby 1.9.2 using the following command: bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. rvm use 1.9.2 --default Doing ruby -v returns ruby

Nginx configuration resulting in too many connections

半腔热情 提交于 2019-12-21 05:11:05
问题 In an attempt to implement the upload progress module, the following server configuration is resulting in too many open files error 2014/11/19 12:10:34 [alert] 31761#0: *1010 socket() failed (24: Too many open files) while connecting to upstream, client: 127.0.0.1, server: xxx, request: "GET /documents/15/edit HTTP/1.0", upstream: "http://127.0.0.1:80/documents/15/edit", host: "127.0.0.1" 2014/11/19 12:10:34 [crit] 31761#0: *1010 open() "/usr/share/nginx/html/50x.html" failed (24: Too many