Hello Im wondering if someone can point me in the right direction. While Im putting some sample stuff together on my local machine Id like to use webrick to point to say mysite.net instead of localhost:3000. I was wondering if there was a config file I could tinker with, like apaches httpd.conf so that I can do this? Thanks Eoghan
On Sep 9, 2005, at 5:10 AM, eoghan wrote:> Hello > Im wondering if someone can point me in the right direction. While > Im putting some sample stuff together on my local machine Id like > to use webrick to point to say mysite.net instead of localhost: > 3000. I was wondering if there was a config file I could tinker > with, like apaches httpd.conf so that I can do this? > Thanks > Eoghan > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >Hello Eoghan- It depends on what platform you are on. If it is a unix/linux/ osx machine then follow these instructions. I don''t know how to do the same on windows Get a terminal/console window and follow these commands: $ sudo pico /etc/hosts #<-- or use whatever editor you are comforatable with. In the hosts file place this: 127.0.0.1:3000 mysite.net #<-- you can call your site whatever you like here. And since it is a local setting to your machine you do not have to use a .net tld. You could just call it mysite. Then after you have made this setting change, start up your rails app and go to your browser and type http://mysite.net or http:// mysite ( or whatever you end up calling your local site) Good Luck- -Ezra Zygmuntowicz Yakima Herald-Republic WebMaster 509-577-7732 ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org
Ezra Zygmuntowicz wrote:> It depends on what platform you are on. If it is a unix/linux/ osx > machine then follow these instructions. I don''t know how to do the same > on windows > > Get a terminal/console window and follow these commands: > > $ sudo pico /etc/hosts #<-- or use whatever editor you arec:\Windows\System32\Drivers\etc\hosts would be the one to use here... The rest of the instructions are the same. -- Alex
On 9 Sep 2005, at 17:33, Ezra Zygmuntowicz wrote:> > On Sep 9, 2005, at 5:10 AM, eoghan wrote: > > >> Hello >> Im wondering if someone can point me in the right direction. While >> Im putting some sample stuff together on my local machine Id like >> to use webrick to point to say mysite.net instead of localhost: >> 3000. I was wondering if there was a config file I could tinker >> with, like apaches httpd.conf so that I can do this? >> Thanks >> Eoghan >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > > Hello Eoghan- > It depends on what platform you are on. If it is a unix/linux/ > osx machine then follow these instructions. I don''t know how to do > the same on windows > > Get a terminal/console window and follow these commands: > > $ sudo pico /etc/hosts #<-- or use whatever editor you are > comforatable with. > > In the hosts file place this: > > 127.0.0.1:3000 mysite.net #<-- you can call your site > whatever you like here. And since it is a local setting to your > machine you do not have to use a .net tld. You could just call it > mysite. Then after you have made this setting change, start up your > rails app and go to your browser and type http://mysite.net or > http://mysite ( or whatever you end up calling your local site) > > G >Hi Ezra, Thanks, im on os x... got the hosts part sorted out... was just wondering if there was anything like httpd.conf... but ill change my sites port in my hosts file. Thanks for the info.. Eoghan