PDA

View Full Version : How do I run a rails app?



sker
10-16-2008, 11:53 PM
I know this has been asked over and over, but seriously, is there a way to do it? Something you can say "I've done it this way, give it a try.."

I've done the "official" guide at http://helpdesk.bluehost.com/kb/index.php?x=&mod_id=2&root=8&id=232 and applied the 404 error htaccess fix at http://helpdesk.bluehost.com/kb/index.php?x=&mod_id=2&id=562.

Now I've been stuck with a 500 internal server error for days and I don't know what to do. I'm on a shared hosting here in bluehost and know nothing about capistrano, mongrel, and all that.

peterbanjo
10-27-2008, 08:35 AM
So after you have done the tutorial and the .htaccess thing the next step is.

#1 Using FTP access upload your rails application (everything including config, environment, db etc) into the rails application folder. Overwrite everything.

#2 Run, "rake db:schema:load RAILS_ENV=production". This should create your production database using settings in your schema.rb file.

#3 Go back to your Rails start page and troubleshoot. I had to make a few changes to my database.yml.

My application is at www.iampeterbanjo.com/blog. :)

I hope that works for you. If it doesn't please let me know.