search for: config_script

Displaying 17 results from an estimated 17 matches for "config_script".

2006 Dec 26
0
Using :config_script to set environment variables
I am using mongrel and mongrel_cluster to serve a rails site. The site requires several environment variables to be set. I am thinking about using the :config_script option and writing a script that sets the required environment variables. Is this a good solution or does anyone have any other suggestions? Thanks for your help. jeremy
2007 Oct 27
8
mongrel 1.0.3
Hello! Run problems after upgrading to mongrel 1.0.3 from 1.0.1: # uname -sr FreeBSD 7.0-BETA1 # mongrel_rails start ** Starting Mongrel listening at :3000 ** Starting Rails with development environment... ** Rails loaded. ** Loading any Rails specific GemPlugins ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). ** Rails signals registered. HUP => reload
2006 Jun 13
1
log and pid file problems when using a config file w/ -C
...log/mongrel.pid -l log/mongrel.log -e production -d -a 127.0.0.1 -p 6833 -G config/mongrel.yml Which also worked, and generated a YAML file with my options: --- :cwd: /home/mcornick/rails/mcornick.org/current :includes: - mongrel :environment: production :timeout: 0 :log_file: log/mongrel.log :config_script: #:pid_file: log/mongrel.pid :num_processors: 1024 :debug: false :group: :docroot: public :user: :host: 127.0.0.1 :mime_map: :port: "6833" :daemon: true And it almost works. If I then try: $ mongrel_rails start -C /home/mcornick/rails/mcornick.org/current/config/mongrel.yml ** You h...
2007 May 23
1
mongrel_cluster + mongrel_upload_progress + drb + capistrano + docs
I just got the mongrel_upload_progress set up with drb and the setup was quick and easy, thanks to the good documentation on http://mongrel.rubyforge.org/docs/upload_progress.html I''d like to get this set up with capistrano, but there are 3 things I can''t figure out: - First, I can''t get lib/upload.rb to run in the background - I''m not familiar with
2007 Apr 06
0
Problem using a configuration file
...ocal/www/xltester.com/public :port: "4785" :prefix: :mime_map: :cwd: /usr/local/www/xltester.com :debug: false :daemon: true :log_file: /usr/local/www/xltester.com/log/mongrel.log :includes: - mongrel :user: xltester :pid_file: /usr/local/www/xltester.com/log/mongrel.4785.pid :timeout: 0 :config_script: The permissions are: $ ls -ld /usr/local/www/xltester.com/config drwx------ 5 xltester xltester 4096 2007-04-06 13:35 /usr/local/www/xltester.com/config $ ls -ld /usr/local/www/xltester.com/config/mongrel.yml -rw------- 1 xltester xltester 426 2007-04-06 13:34 /usr/local/www/xltester.com/config/m...
2007 Dec 18
0
Using mod_xsendfile and x_send_file with Mongrel
...iases for static content ProxyPass / http://localhost:8000/ ProxyPassReverse / http://localhost:8000/ ProxyPreserveHost on </VirtualHost> mongrel.yml: --- :host: 127.0.0.1 :throttle: 0 :includes: :docroot: public :debug: false :mime_map: :port: 8000 :timeout: 60 :num_processors: :config_script: :daemon: true :group: adam :environment: development :pid_file: log/mongrel.pid :cwd: /usr/home/user/myserver :prefix: :user: user :group: user :log_file: log/mongrel.log when I use x_send_file with the following in one of my rails controllers: x_send_file(@order.file_name, :type => '...
2006 Aug 11
1
mongrel still fails to write pid file when starting with config file
...ude -G config/mongrel.conf, the following is generated in the config file: --- :user: mongrel :host: 0.0.0.0 :mime_map: :prefix: :port: "3000" :daemon: true :cwd: /srv/www/railsapps/myapp :includes: - mongrel :environment: production :group: webdev :log_file: log/mongrel.log :timeout: 0 :config_script: :pid_file: log/mongrel.pid :num_processors: 1024 :debug: false :docroot: public i then run mongrel_rails start -C config/mongrel.conf and mongrel start, but the pid file is still not written. the log directory perms are 775 and owned by group webdev. in addition the mogrel.log file is being wri...
2006 Jul 14
0
pid file info not working in config file
...:docroot: public :user: :timeout: 0 :host: 127.0.0.1 :mime_map: :debug: false :port: "8000" :daemon: true :cwd: /var/www/rails/web_apps/accounts :group: :includes: - mongrel :log_file: log/mongrel.log :config_script: :pid_file: /tmp/mongrel.8000.pid :num_processors: 1024 :environment: development --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/...
2006 Jun 23
1
mongrel start oddities
...------- !!! Path to log file not valid: log/mongrel.log --------- Here are the contents of the YAML config file (which I generated from the command line at the top of this message with a -G): --------- --- :daemon: true :cwd: /home/www/rails/myapp :includes: - mongrel :log_file: log/mongrel.log :config_script: :pid_file: log/mongrel.pid :group: rails :num_processors: 1024 :environment: production :timeout: 0 :docroot: public :user: rails :host: 127.0.0.1 :mime_map: :debug: false :port: "8080" --------- It is as though options on the command line get parsed before the log file path gets vali...
2006 Aug 07
0
some questions about mongrel
...ought that i should probably post them here instead. zed has already answered one of my questions, but i did have a couple more. 1) mongrel is not writing the pid file, which i have specified in the config file --- :cwd: /srv/www/railsapps/rftrack :includes: - mongrel :log_file: log/mongrel.log :config_script: :pid_file: log/mongrel.pid :num_processors: 1024 :environment: production :group: webdev :docroot: public :user: mongrel :timeout: 0 :host: 0.0.0.0 :mime_map: :port: "3010" :debug: false :daemon: true i start mongrel from within the application root as: mongrel_rails start -C config/mo...
2006 Aug 04
2
anyone experience problems with mongrel and sessions?
I''ve moved an application that was running under apache2/fcgi to apache2/mongrel(mod_proxy). under the original setup i had no problems with sessions. now under mongrel, the users are experiencing application errors. after looking at the logs, I am seeing that a piece of code that relies on a session variable is what is causing the error. It seems that the session variable no longer
2006 Oct 22
7
GzipFilter gemplugin now available
...source http://edenli.com Configure (assuming rails): cd RAILS_ROOT echo ''uri "/", :handler => plugin("/handlers/gzipfilter")'' >> config/mongrel.conf Run: mongrel_rails start -S config/mongrel.conf If you want to use this with a cluster, add "config_script: config/mongrel.conf" to your config/mongrel_cluster.yml file. Somewhat related: I also patched the deflatefilter against mongrel 0.13.5 to work with IE and (probably) Safari. It''s available here if you want to use the deflate encoding instead (savings difference is miniscule): ht...
2007 Feb 08
0
mongrel_rails man page
...logs accesses writing them to log/mongrel_debug. This option makes Mongrel very slow. .br .I * Default: false .br \fB-C, --config PATH\fP (NONE) Specifies a configuration YAML file that sets options - use absolute paths. .br .I * Default: no default .br \fB-S, --script PATH\fP (:config_script) A special Ruby file that is run after Rails is configured to give you the ability to change the configuration with Ruby. This would be where you can load customer Mongrel handlers, extra libraries, or setup additional Ruby code. This option is fairly advanced so use with caution. .br .I *...
2006 May 04
4
problem setting up mongrel_cluster 0.1.1
...g mongrel_cluster 0.1.1 - recreating config file: mongrel_rails cluster::configure - modifying configfile manually to make it look like this: (will be more the one server later) --- num-procs: 1024 docroot: public timeout: 120 cwd: /home/me/sites/myapp/current log_file: log/mongrel.log port: 3000 config_script: debug: false environment: production servers: 1 pid_file: log/mongrel.pid address: 0.0.0.0 mime_map: - deploy.rb: commented out my old restart and spinner tasks and added: require ''mongrel_cluster/recipes'' - deployment: rake deploy (fails because config file is at: /home/me/s...
2006 Jun 30
12
Mongrel 0.3.13.3 -- Ruby Licensed Release
Hello Everyone, This is the official 0.3.13.3 release of Mongrel. Mongrel is now released under the *Ruby license* instead of the LGPL. I''m hoping this increases the adoption of Mongrel even further and hopefully I can start pushing to get Mongrel included in Ruby directly. INSTALL As usual, you install it with your friendly gem install method of choice: gem install mongrel Or
2006 May 01
3
mongrel_cluster-0.1.1: the bird dog (capistrano support!)
Hey y''all: mongrel_cluster provides management tools for running Mongrel behind a reverse-proxy/load balancer. It is an extraction from Rails Machine, a deployment service and Ruby library that simplifies Rails application deployment. This release fixes bugs and adds a Capistrano task library. Changes: -changed pid file format to include port -only write configuration options
2006 Nov 28
34
Uploading Large (100mb+) files
I have an Apache 2.2.3 (mod_proxy_balancer) frontend server that does not have mongrel installed. It does proxy requests to several other mongrel-only servers (each running 2 mongrel processes). Each mongrel node has the same rails code-base and it''s working perfectly. However, my question is when I add an upload file form... where is it going to physically put that file? I mean since