RailsBaseURI /app3
</VirtualHost>
This link has been bookmarked by 9 people . It was first bookmarked on 14 Jun 2008, by Danny armstrong.
-
13 Oct 09
-
By restarting Apache.
By creating or modifying the file tmp/restart.txt in the Rails
application’s root folder. Phusion Passenger will
automatically restart the application.
config.ru, a Rackup file for starting the Rack application. This file must contain
the complete logic for initializing the application.
public/, a folder containing public static web assets, like images and stylesheets.
tmp/, used for restart.txt (our application restart mechanism). This will
be explained in a following subsection.
3.3. Redeploying (restarting the Ruby on Rails application)
Deploying a new version of a Ruby on Rails application is as simple as
re-uploading the application files, and restarting the application.There are two ways to restart the application:
So /webapps/rackapp must, at minimum, look like this:
-
-
27 May 09
-
20 Jan 09
-
08 Dec 08
-
PassengerUseGlobalQueue
-
256 MB RAM, and
is also running other services such as MySQL, then we recommend a value of 2. - 25 more annotations...
-
-
global server configuration.
The default value is 6. -
specify that the given URI is a Rails application
-
RailsEnv
-
RailsSpawnMethod
-
significantly decrease spawn time (by as much as 90%)
-
Apache configuration is too strict
-
Apache process doesn't have permission to access your Rails application's folder
-
Analysis and system maintenance tools
-
ps and top are useful, but they
rarely show the correct memory usage. -
passenger-memory-stats
-
Passenger spawn server
-
Passenger FrameworkSpawner: 2.0.2
-
Passenger ApplicationSpawner:
-
Apache worker processes only take less than 1 MB memory each.
-
PID: 17468 Sessions: 8 <---- "spike"
-
Debugging frozen applications
-
killing it with SIGABRT
-
safe to kill application instances, even in live environments
-
all PHP
applications are run in the same user context as the web server -
Joe's PHP application will be able to read Jane's PHP application's
passwords -
started as the owner of the file config/environment.rb
-
for each deploy, a new spawner server is
created -
when deploying a new version, the symlink will change, and Phusion Passenger
will think it's a new application, thereby creating a new spawner serve -
will terminate itself after its default
timeout (10 minutes),
-
-
-
26 Nov 08
-
25 Aug 08
-
02 Jul 08
-
6.3.3. I get a "304 Forbidden" error
-
-
14 Jun 08
-
Passenger users guide
-
Passenger is an Apache module, which makes deploying Ruby on Rails applications
on Apache a breeze. It follows the usual Ruby on Rails conventions, such as
"Don't-Repeat-Yourself" and ease of setup. - 3 more annotations...
-
-
Add a virtual host entry to your Apache configuration file. The virtual host's
document root must point to your Ruby on Rails application's public folder.
For example: -
There are two ways to restart the application:
-
to restart our example MyCook application, we type this in the
command line
-
-
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.