passenger

Rails App Maintenence Without Hindering Visitors

会有一股神秘感。 提交于 2019-12-03 10:17:43
问题 A Phusion Passenger error message isn't what I want my visitors to see if they landed on my site while I'm updating the back end. So how do I get around this? Is my deployment process flawed from the start? or is there something I'm missing out? Here's my process of deployment, so you get the picture: commit new updates to a git repo and push to remote cap deploy ssh [ip] rake gems:install rake db:migrate cucumber The time in between the cap deploy and the db:migrate or gems:install is when

Need advice on deploying my first rails app to a mediatemple (dv)

懵懂的女人 提交于 2019-12-03 10:17:34
问题 I'm trying to deploy my first rails app on a mediatemple (dv) and i'm not having any luck. I'm trying to use phusion passenger so i went over to http://www.modrails.com/videos/passenger.mov and watched the tutorial on installing this. I did everything with no issues and I'm when i point to my ip, i see an apache page and not my rails app. I noticed that on mediatemple, I had to create a vhosts.conf file and run a command to reconfigure my project to look at this vhosts.conf file. Reference -

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

隐身守侯 提交于 2019-12-03 10:09:50
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 listed above dump format error for symbol(0x45) Processing by Devise::SessionsController#new as HTML

Apache httpd.h file missing on MacOSX after Mavericks Upgrade (** Updated for Yosemite **)

♀尐吖头ヾ 提交于 2019-12-03 09:40:56
问题 I am trying to run the passenger-install-apache2-module command and I keep getting this error: ext/apache2/mod_passenger.c:25:10: fatal error: 'httpd.h' file not found Not sure what happened to it, my local dev environment was fine until I upgraded to Mavericks - I had to update XCode and uninstall/reinstall the passenger gem. I tried creating httpd.h in the /etc/apache2 directory and pasting this in but that didn't work. I've no idea how to replace this file 回答1: I was having the same error.

nginx + passenger + rails 3.1 = 502 bad gateway?

筅森魡賤 提交于 2019-12-03 08:56:47
I have the latest Nginx running with Passenger, SQLite and Rails 3.1. Somehow, when I have Passenger running for a while, I start getting "502 bad gateway" errors when visiting my website. Here is a snippet from my Nginx error log: 2011/06/27 08:55:33 [error] 20331#0: *11270 upstream prematurely closed connection while reading response header from upstream, client: xxx.xxx.xx.x, server: www.example.com, request: "GET / HTTP/1.1", upstream: "passenger:unix:/passenger_helper_server:", host: "example.com" 2011/06/27 08:55:47 [info] 20331#0: *11273 client closed prematurely connection, so upstream

Passenger & Nginx => 502 Bad Gateway Errors in Production

那年仲夏 提交于 2019-12-03 08:44:26
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.com", referrer: " http://www.memverse.com/quick_add/7352 " and, less frequently, the following error

How to get rufus-scheduler working with a Rails app deployed to Heroku?

白昼怎懂夜的黑 提交于 2019-12-03 08:39:28
In ./config/initializers I've created a file called task_scheduler.rb and it contains the following code: require 'rufus-scheduler' require 'mechanize' scheduler = Rufus::Scheduler.new scheduler.every("1h") do puts "Starting Rufus Scheduler - Task 1 - Checking exampleShop for new orders" a = Mechanize.new a.get('http://exampleshop.nl/admin/') do |page| # Select the login form login_form = page.forms.first # Insert the username and password login_form.username = 'username' login_form.password = 'password' # Submit the login information dashboard_page = a.submit(login_form, login_form.buttons

How does RVM work in production with no users logged in?

試著忘記壹切 提交于 2019-12-03 07:42:27
问题 Considering putting RVM into production (light duty) on a new machine. But I'm not visualizing how it will work if a user isn't logged in. RVM has been installed into /usr/local/rvm/bin/rvm so it is available to "everyone". If server restarts and is at login screen and background daemons are serving apache/rails, etc. and no .bashrc , etc. have loaded...how/where do we specify which of RVM's Rubies to load? Perhaps somewhere in Phusion's Passenger? who manages these gemsets? are they shared?

Gitlab in a subdirectory with apache and passenger

守給你的承諾、 提交于 2019-12-03 07:24:51
问题 I'm attempting to set up gitlab so that it is accessible through a subdirectory of an existing apache server, example.com/gitlab , for example. I am trying to use passenger, as this seems to be the easiest to set up, but other solutions would also be acceptable. Using a separate virtual host for gitlab is unfortunately not an option for me. My Setup In setting this up, I have followed the gitlab setup guide and the passenger documentation. I believe the most relevant parts of /etc/httpd/conf

When to restart and not reload Nginx?

余生长醉 提交于 2019-12-03 05:25:37
问题 When is it necessary to restart nginx and reload will not suffice? Does it make a difference if an extension like passenger is used? Should the service be restarted if it consumes too much memory. Any other reasons for restarting Nginx, particularly after a configuration change either in an extension or a Nginx core config? After making a configuration change, one can either restart or reload nginx, via the binary itself or the init.d script "/etc/init.d/nginx -h" on Ubuntu. Which method