Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    SHY
    SHY is offline
    New Coder
    Join Date
    Apr 2005
    Location
    Kosice, Slovakia
    Posts
    36
    Thanks
    2
    Thanked 0 Times in 0 Posts

    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?
    Last edited by SHY; 09-07-2006 at 11:09 PM.
    "Programming is an art form that fights back."

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    From that base directory:
    ln -s ./sub/dev ./rails/mydomain/public

    maybe?

  • #3
    SHY
    SHY is offline
    New Coder
    Join Date
    Apr 2005
    Location
    Kosice, Slovakia
    Posts
    36
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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."


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •