Forum: Mongrel Option mime (-m) does'nt work

Posted by Anders Eriksen (anse)
on 2008-09-03 12:26
Trying to start Mongrel with:
ruby script/server -p 3001 -m config/mongrel_mime.yml

The config-file tells Mongrel to use ISO-8859-1 and includes:
.htm: text/html; charset=ISO-8859-1
.html: text/html; charset=ISO-8859-1

But mongrel returns the following error when starting up:

server: invalid option: -m

But isn't the -m option the one to use?

Anders
Posted by Ripta Pasay (rpasay)
on 2008-09-03 18:12
The -m option is an option to mongrel_rails, not script/server. Try 
"mongrel_rails start -p 3001 -m config/mongrel_mime.yml" instead, or 
"mongrel_rails start -h" for help.

Ripta

Anders Eriksen wrote:
> Trying to start Mongrel with:
> ruby script/server -p 3001 -m config/mongrel_mime.yml
> 
> The config-file tells Mongrel to use ISO-8859-1 and includes:
> .htm: text/html; charset=ISO-8859-1
> .html: text/html; charset=ISO-8859-1
> 
> But mongrel returns the following error when starting up:
> 
> server: invalid option: -m
> 
> But isn't the -m option the one to use?
> 
> Anders
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.