Reply to topic
Problems deploying rails app
jonsteenbergen


Joined: 11 Apr 2007
Posts: 5
Location: Cincinnati, OH 45206
Reply with quote
I've been searching around for a solution, but no luck yet.

I've uploaded my rails app, linked it, updated the path to ruby, and now when I go to my site I am seeing the route I've set for the index page - but that's where things stop working.

http://productiveparenting.com/pp/ - this works
it's mapped to
http://productiveparenting.com/pp/onlinepoll/new - this doesn't work, nor do any links/actions from that page.

I just downloaded the entire directory and ran it locally through webrick to see what would happen, it works as it should - as did my local version before the upload. It even works with my HMS mysql db - I didn't change the config file, so submitting the form on my local machine sent the data to my HMS db.

I know the pages are there, and everything seems to be working when I check locally, I've looked through the log file and I'm not seeing any errors there.

Has anyone had the same experience? Anyone have any ideas where I should be looking to figure out why my app can't find it's files?

Thanks in advance!
J Steenbergen
Ln -s or rails routing?
comprug
Forum Regular

Joined: 15 Feb 2006
Posts: 347
Reply with quote
Hello,
I believe I might have encountered a similar problem with one of my rails apps. Are you using rails routing in config/routes.rb to do this?

Thanks,
Ben
jonsteenbergen


Joined: 11 Apr 2007
Posts: 5
Location: Cincinnati, OH 45206
Reply with quote
I'm using
ln -s ~/pp/public/ ~/htdocs/pp
to point productiveparenting.com/pp to the rails app which is at my root

and then my routes.rb uses
map.connect '', :controller => 'Onlinepoll', :action => 'list'
to call the list action of the onlinepoll as the initial page

this is my first rails app deployment, thanks for getting back to me so quickly!
I'm not sure if this works
comprug
Forum Regular

Joined: 15 Feb 2006
Posts: 347
Reply with quote
Hello,
I'm not sure if this works, but first you may want to try removing pp/public/index.html. If this doesn't work, replace "Onlinepoll' with 'onlinepoll' just in case. If this doesn't work, replace map.connect 'pp'. You may need to do this because the app is not hosted at the root of the site.

This is a lot of ifs, but I had this problem before when deploying a similar setup, and these were various things I tried; I forget which one worked.
pmeserve
HostMySite Tech

Joined: 19 Mar 2004
Posts: 178
Reply with quote
jonsteenbergen - If you're still having problems after comprug's suggestions, I'd recommend contacting support directly so we can take a look at your setup
jonsteenbergen


Joined: 11 Apr 2007
Posts: 5
Location: Cincinnati, OH 45206
Reply with quote
Thanks Comprug, I'll give those a shot. I spent yesterday testing and playing with the .htaccess file - so I made things worse than before. Luckily support was able to get me back on track. I'll post a solution if I get one, if not I'll follow pmeserve's suggestion and have support take another look.
.htaccess
comprug
Forum Regular

Joined: 15 Feb 2006
Posts: 347
Reply with quote
Yeah, i'd recommend not playing with .htaccess.. Very difficult to get right, regexps can be complicated.
jonsteenbergen


Joined: 11 Apr 2007
Posts: 5
Location: Cincinnati, OH 45206
Reply with quote
It's working!!

Support made a change to my virtual container so FCGI would work properly.
Thanks for all the help and suggestions, I've got a much better understanding of the rails underpinnings.
Problems deploying 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