Reply to topic
Log for 86311.hostmyapplications.com
JdeJong


Joined: 03 May 2006
Posts: 9
Reply with quote
Steps for testing MyHost RoR Beta & learning RoR

1) Execute steps of http://forums.hostmysite.com/viewtopic.php?t=1579 - completed
2) Implement - Rolling with Ruby on Rails by Curt Hibbs : http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html
3) Implement - HosyMySite Rails tutorial - part 1 : http://forums.hostmysite.com/viewtopic.php?t=1595 - completed
4) Implement - HosyMySite Rails tutorial - part 2 : http://forums.hostmysite.com/viewtopic.php?t=1597] - completed


Problems:

1.a) ln -s /vservers/.... did not work.
1.b) getting an 403 Forbidden when I start http://86311.hostmyapplications.com/testApp/

Solution:

1.a) created directory testApp under /vservers/DIRECTORY/htdocs with mkdir /vservers/DIRECTORY/htdocs/testApp
no need to do this after all, see below

2.b) Read the full story below Smile

I Noticed the text below in /vservers/DIRECTORY/testApp/public/.htaccess

Code:
# If your Rails application is accessed via an Alias directive,
# then you MUST also set the RewriteBase in this htaccess file.
#
# Example:
#   Alias /myrailsapp /path/to/myrailsapp/public
#   RewriteBase /myrailsapp


Must investigate further, but must go to work now, where I have no FTP rights Sad. Back in +- 10 hours

After 2 hours trying every possible option in .htaccessp, I swallowed my pride and asked assistance from the support staff of HostMySite via online chat. The support person I "spoke" could not find the error immediately but promised he would look into it further and reply by email.

When I checked my email an hour later I got the following email:

Code:

Hello Johannes,

Your symlink setup was just a little off.  You have a public symlink inside your htdocs/testApp directory linked to your public directory of your test app, but the htdocs/testApp location itself should have been a symlink to your public folder in your test app.  I have corrected this issue, and now when I go to http://86311.hostmyapplications.com/testApp/, I can see the rails welcome page correctly.  If you have any additional questions please let us know.  Thanks!

Regards,
Matthew Ferguson


I investigated a bit further.

I should have realized something was wrong when I got the error message “No such file or directory” when creating my symbolic link Embarassed

The last / in the “Getting started with HMS Ruby on Rails Beta” should not be there !!!

It should be :

Code:

ln -s /vservers/DIRECTORY/testApp/public/ /vservers/DIRECTORY/htdocs/testApp


Then everything works perfect. So there is(was) no need to create a directory under htdocs after all


Last edited by JdeJong on Wed May 17, 2006 5:32 pm; edited 9 times in total
JdeJong


Joined: 03 May 2006
Posts: 9
Reply with quote
Sorry all; in step 1) I cut&pasted the wrong url Embarassed
JdeJong


Joined: 03 May 2006
Posts: 9
Reply with quote
First step is, finally, working Smile
JdeJong


Joined: 03 May 2006
Posts: 9
Reply with quote
Sorry did not do anything with RoR this weekend, we had fantastic weather on this side of the pond, Netherlands, and was in the garden the whole weekend, had my first barbeque of the season as well Laughing, will try and find time tonight to make a start on HostMySite RoR tutorial. Will keep you posted.
JdeJong


Joined: 03 May 2006
Posts: 9
Reply with quote
Completed HostMySite's RoR tutorial Part 1 & 2
Log for 86311.hostmyapplications.com
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