Go Back   CodingForums.com > :: Server side development > Ruby & Ruby On Rails

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-07-2006, 10:07 PM   PM User | #1
SHY
New Coder

 
Join Date: Apr 2005
Location: Kosice, Slovakia
Posts: 36
Thanks: 2
Thanked 0 Times in 0 Posts
SHY is an unknown quantity at this point
linking rails application to web directory

hey, my shared hosting allows me to run rails from shell, but the admin recommended me to not place the application within the web directory. actually, this is how the dir structure looks like after i log in:

/logs
/sub
/web
/rails

logs is clear, sub contains subdomain dirs (as soon as i create /sub/my, i can easily access my.domain.com), web is the main www directory and rails contains my rails application (rails/mydomain/* to be precise).

the thing is that i somehow need to link the /sub/dev directory to /rails/mydomain/public, so that when i access dev.domain.com, the rails application appears. i tried to link it using ln -sfn but it gives me "You don't have permission to access / on this server." error. i guess it might be something with .htaccess to do, but i cant really thing of anything smart right now.

any ideas?
__________________
"Programming is an art form that fights back."

Last edited by SHY; 09-07-2006 at 10:09 PM..
SHY is offline   Reply With Quote
Old 09-07-2006, 11:45 PM   PM User | #2
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
From that base directory:
ln -s ./sub/dev ./rails/mydomain/public

maybe?
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 09-08-2006, 10:46 AM   PM User | #3
SHY
New Coder

 
Join Date: Apr 2005
Location: Kosice, Slovakia
Posts: 36
Thanks: 2
Thanked 0 Times in 0 Posts
SHY is an unknown quantity at this point
yes, that worked

the exact thing i typed was the following (being inside of the /sub directory)

ln -s ../rails/myapp/public dev
__________________
"Programming is an art form that fights back."
SHY is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:32 AM.


Advertisement
Log in to turn off these ads.