Displaying 18 results from an estimated 18 matches for "mime_map".
Did you mean:
file_map
2006 May 18
1
mime yaml
...etc/mongrel_mime.yml is only a single line:
.xml: text/xml
However, the custom mime isn''t picked up and my XML files were served
with default mime.
A bit of digging I found trunk/bin/mongrel_rails (line 87) containing
lines to parse the YAML file:
mime = {}
if defaults[:mime_map]
log "Loading additional MIME types from #{defaults[:mime_map]}"
mime = load_mime_map(defaults[:mime_map], mime)
end
The only thing is... the variable "mime" wasn''t used anywhere. Further
down at line 99 is:
uri "/", :handl...
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
...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 have sendfile installed, will use that to serve files.
!!! Path to log file not valid: log/mongrel.log
start reported an error....
2011 Oct 18
2
patch proposal: omindex library or daemon
Olly (looking at commit logs, I think this is your dept :-)
For apps which re/index files frequently and need format conversion, I'd
like to propose a patch for one of...
Omindex library (thread safe):
Omindex::init(options) // struct Omindex::options { ... }
initialize mime_map, store default options
session = new Omindex::Session(db_pathname)
user threads use different sessions
session.index_files(list, options) // list & return value are vector of {
char * url, * file_path, * file_ext }
perform a transaction for all files in list; create & return skip_li...
2006 Jul 07
10
problem serving pdf files
I''m using the instructions from
http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/to
configure mongrel_cluster with apache mod_proxy_balancer. Everything
works fine, except when I try to link to a pdf file to be opened in a new
window, it displays the contents of the pdf as text instead of opening it as
a pdf document through Acrobat.
2007 Apr 06
0
Problem using a configuration file
...n Mongrel as
root. Here''s Mongrel''s config file:
$ cat /usr/local/www/xltester.com/config/mongrel.yml
---
:environment: production
:host: 127.0.0.1
:config_file:
:group: xltester
:num_processors: 1024
:docroot: /usr/local/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.c...
2007 Dec 18
0
Using mod_xsendfile and x_send_file with Mongrel
...ser/myserver/public/stylesheets
#continue with aliases 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 control...
2006 Aug 11
1
mongrel still fails to write pid file when starting with config file
...ing 03.13.4 with --version
if i run this command:
mongrel_rails start -p 3000 -e production -d --user mongrel --group webdev
mongrel DOES create the pid file
if i run the same, and include -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_rail...
2006 Jul 14
0
pid file info not working in config file
...ne but the pid file option has no effect, or at least the file is not created. If I set this pid file using the -P option then it works.
--- :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...
2006 Jun 23
1
mongrel start oddities
...p 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 validated, but options in the config file are parsed *after* the
log file path is validated. Even fully qualifying the path to the log file
in the config file fai...
2009 Feb 03
1
PowerPoint 2007 filter
...xmlparser.parse_html(stdout_to_string(cmd));
dump = xmlparser.dump;
} catch (ReadError) {
cout << "\"" << cmd << "\" failed - skipping\n";
return;
}
// End: PowerPoint 2007 .pptx
FYI the mime type I entered was:
mime_map["pptx"] =
"application/vnd.openxmlformats-officedocument.presentationml.presentation";
2006 Aug 07
0
some questions about mongrel
...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/mongrel.yml
the mongrel.log file IS created and written to just fine. all
directories in the app are group owned by ''webdev'' and are group
wr...
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
2007 Feb 08
0
mongrel_rails man page
...current processing threads before Mongrel starts denying connections and trying to kill old threads.
.br
.I * Default: 1024
.br
\fB-t, --timeout SEC\fP (:timeout) Time to pause between accepting clients. Used as a throttle mechanism.
.br
.I * Default: 0
.br
\fB-m, --mime PATH\fP (:mime_map) A YAML file that lists additional MIME types.
.br
.I * Default: not set.
.br
\fB-c, --chdir PATH\fP (:cwd) Directory to change to prior to starting Mongrel.
.br
.I * Default: . (current directory)
.br
\fB-r, --root PATH\fP (:docroot) Document root where Mongrel should serve...
2006 May 04
4
problem setting up mongrel_cluster 0.1.1
...e 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/sites/myapp/current/config/mongrel_cluster.yml)
...
executing "mongrel_rails cluster::restart -C...
2006 Sep 13
7
Mongrel spewing backtraces and nanosleeping
Hi list,
I''m seeing a couple of issues with Mongrel. I''m running FreeBSD 6.1 and
have previously been told that there are known conflicts between this
and Mongrel, yet I hope these issues will be resolved with time.
I''m overloading Mongrel with httperf on my local workstation. Mongrel is
started directly with the mongrel_rails command and there is only one
mongrel
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