I'd like to restrict access to my Rails app (running on Apache/Passenger) to just two IPs, but if the visitor doesn't fall into those two IPs, I would like for him/her to be prompted to enter a password that would allow any user with the proper credentials to access the site from anywhere.
I am new to configuring Apache and would apprec...
I have a Passenger-based production Rails application which has thousands of users. Occasionally we need to apply a code patch (we use git) and the current process for doing this (you can assume there are no data migrations) is:
Perform git pull origin [production-branch-name] on the server
touch tmp/restart.txt to restart Passenger
...
We have an environment running that uses Apache, Passenger and rails. The system is handling most request normally, yet certain requests do not make it to the rails application. For instance, a request to /books is successful, but /books/1 hits apache and passenger, but does not even make it to rails.
We set the apache log level to de...
Hello,
I would like to have individuals config for my rails apps on my server, using passenger. How to do it ? For example, I want to have different PassengerPoolIdleTime ...
...
I have nginx(0.7.64) with passenger(2.2.9) over ruby(1.8.7) Enterprise Edition.
When I operate from script/console, log behaves normal, but whenever nginx receives a request, it is logged twice.
I have two different rails apps in separate vhosts (like the one bellow) and it happens in both (one is in development and one in production)....
I have a rails app that I just deployed which is generating Invalid AuthenticityToken errors anywhere a form is submitted. The app uses subdomains as account names and will also eventually allow for a custom domain to be entered. I have an entry in production.rb to allow for cross-domain session handling.
The problem is that you can...
I have set PassengerPoolIdleTime to 0, with the expectation that this means I can "warm" up a bunch of passenger processes on my server, and the next time I have a burst of traffic (even if it is days later), they will all be warmed up and ready to accept requests.
What I'm seeing instead is that every morning when I get up, passenger-s...
I am working on a Dreamhost server with Rails 2.3.5.
Every time I make changes to a site, I have to ssh into the site, remove all the files, upload a zip file containing all the new files for the site, unzip that file, migrate the database, and go.
Something tells me there's a faster way to deploy rails apps. I am using mac Time Machin...
I've been using webfaction for all my django needs for the last couple of years but have had a high traffic site fall in my lap that dreamhost are probably better suited to handling.
To set up and experiment with a site with webfaction there are your [user].webfactional.com accounts. Which is sweet.
Equivalently Dreamhost also offers [...
I have an application (Rails 2.3.5) that I'm deploying to production Linux/Apache server using the latest Phushion Passenger/Apache Module 2.2.11 version. After deploying my original application, it returns a 500 error with no logging to production log.
So I created a minimal test rails application, with some active record calls to the ...
Hi everyboy,
I used to have PHP websites and using url rewriting on picture to have SEO friendly urls,
On php I had links like
/image/blablablabla-1234-blablabla
rewriting to:
/image/1234.jpg
by using a url rewrite rule on apache .htaccess file.
So I would like the structure /image/<text>-ID-<text> to return /image/<id>.jpg reguardl...
I asked this a couple of days ago on Server Fault but am getting no responses and little interest. Since it is related to setting up a dev environment I thought the SO community might be able to help me out...
I just installed Passenger and the Passenger Pref Pane on OSX. However, when I try to browse to one of my Rails applications I...
I've been researching this one and found references to similar problems here and there, but none of them has led to a solution yet. I've installed passenger (2.2.11) and nginx (0.7.64) and when I start things up and hit a Rails URL, I get an error page informing me of a load error:
no such file to load -- /path/to/app/config/environment...
Hi Guys,
I've just started on rails, got it all setup on my DreamHost account with Passenger, except the demo controller I've created isn't working. I ran:
$ script/generate controller demo index
The files are all there, but when I go to http://rails.mysite.com/demo/index I get the 'We're sorry, but something went wrong' message. The...
I used Passenger to deploy a RoR app to a sub URI on my domain. The problem I'm facing is that the sub URI seems to be case sensitive. Navigating to http://mydomain.com/RailsApp resolves fine. However, if I go to http://mydomain.com/railsapp, http://mydomain.com/railsApp, or any other variation, I get a 404 error. How can these requests ...
I have an issue where Passenger is not detecting the config.ru file for the following nginx server
server {
listen 80;
passenger_enabled on;
server_name callumj.com cjlondon.com;
access_log logs/callumj.access.log;
root /webapps/callumj_com/public;
}
Nginx just seems to ignor...
Hello,
is it possible to send notification emails when passenger error occurs? Something similar to the email sending by exception notifier when there is an error in Rails app.
I wonder because now we have no way to find out if someone hits an unexpected app spawner or other error (like memory limit etc.).
Thank you!
...
I'm a new ruby/rails user trying to get my mac set up for the first time with an existing rails project. The app runs fine when using mongrel, but it doesn't start properly when using Phusion Passenger.
The problem seems to be when loading the first model of the project. I'm speculating that there's a problem accessing my database, bu...
I'm using Phusion Passenger with a ruby app and I'd also like to set it up to work with an django appengine app I'm working on.
Googling for "passenger_wsgi.py" I was able to get the following very simple non-django app working on passenger:
passenger_wsgi.py:
def application(environ, start_response):
response_headers = [('Content-...
I'm having a devil of a time getting Phusion Passenger to work with django-nonrel for Google's App Engine. I can seem to get it to work for GoogleAppEngineLauncher and for the production server but not Passenger; or for Passenger and GoogleAppEngineLauncher but not the production server; or for Passenger and the production server but no...