Reply to topic
How can I point the root of my site to my rails app?
mmikolaj


Joined: 12 Sep 2006
Posts: 1
Reply with quote
I'd like to be able to have the main url such as 1234.hostmyapplications.com go directly to my site instead of typing in 1234.hostmyapplications.com/myapp
Is there a way to do it?
rob_hms


Joined: 20 Sep 2006
Posts: 4
Reply with quote
You'll want to create a symbolic link called htdocs to point to your application/public/ directory. For example, if you had an application named "myapp", you would log into your server via SSH and execute the following command:

ln -s myapp/public/ htdocs

If the htdocs/ directory already exists, you'll need to remove it and all of it's content first (rm -rf htdocs/). Make sure you don't have anything in there that you don't need to keep before doing this though Smile.
How can I point the root of my site to my rails app?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic