Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 linking rails application to web directory

View previous topic View next topic Go down 
AuthorMessage
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

linking rails application to web directory Empty
PostSubject: linking rails application to web directory   linking rails application to web directory EmptyFri Jul 27, 2012 10:50 pm

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?
Back to top Go down
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

linking rails application to web directory Empty
PostSubject: Re: linking rails application to web directory   linking rails application to web directory EmptyFri Jul 27, 2012 10:50 pm

From that base directory:
ln -s ./sub/dev ./rails/mydomain/public

maybe?
Back to top Go down
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

linking rails application to web directory Empty
PostSubject: Re: linking rails application to web directory   linking rails application to web directory EmptyFri Jul 27, 2012 10:51 pm

yes, that worked

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

ln -s ../rails/myapp/public dev
Back to top Go down
Sponsored content




linking rails application to web directory Empty
PostSubject: Re: linking rails application to web directory   linking rails application to web directory Empty

Back to top Go down
 

linking rails application to web directory

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Ruby on rails vs. Php
» question about ruby on rails
» how ruby/rails work ?
» Toggling <div> Visibility in a Rails App
» Tracks (Ruby On Rails)

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: linking rails application to web directory Edit-trash Useless :: Trash-