bfaloona / monologues

monologues rails website
0 stars 1 forks source link

deploy beta version of monologues rails application on godaddy #13

Closed bfaloona closed 14 years ago

bfaloona commented 14 years ago

A dry run test to document what needs to happen

bfaloona commented 14 years ago

http://help.godaddy.com/article/1091 - installing an app

http://help.godaddy.com/article/1373 - available gems (I see several missing, so this could be a problem)

slshults commented 14 years ago

the latter link mentions that may not be a current list and refers to this page to get a current list of gems: http://help.godaddy.com/article/1094

slshults commented 14 years ago

Here's a current list. Let me know if you need versions and I can grab the full expanded list. If some are missing let me know what they are and I'll start digging around for how to make a request to have them installed.

actionmailer, actionpack, actionwebservice, activerecord, activesupport, ajax_scaffold_generator, archive-tar-minitar, Bloglines4R, BlueCloth, builder, cmdparse, color-tools, diff-lcs, EliteJournal, fcgi, ferret, gnuplot, htmltools, instiki, login_generator, madeleine, mime-types, mysql, PageTemplate, ParseTree, ParseTree, payment, pdf-writer, podcast, rails, rake, rake, RedCloth, rflickr, rmagick, RubyInline, rubyslippers, rubyzip, rubyzip, ruwiki, shipping, shorturl, sources, sqlite-ruby, syntax, Technorati-Ruby, tidy, transaction-simple, webgen, wee, xml-simple.

slshults commented 14 years ago

aha: We try to make the most popular Gems available to our hosting customers in a timely fashion. To request a Gem we do not currently offer, please email suggestions@secureserver.net.

slshults commented 14 years ago

well, i've got it displaying the index page but when you try to get to any of the apps pages you get a 404. I'll be scouring this doc looking for hints: http://help.godaddy.com/article/1406

slshults commented 14 years ago

googlizing led me to this. long story short it runs but poorly and not for long. I fear I may have to reconsider my hesitations about hosting it at heroku. let's discuss some more.

from http://www.ruby-forum.com/topic/104823

  1. Set up the rails app directory in the cgi manager.
  2. Freeze rails and any other gems. (I've used up to version 1.1.6 on GoDaddy)
  3. Upload the project into a subdirectory of the newly created rails app directory
  4. In the cgi manager, create the symbolic link to your newly uploaded app.
  5. Change permissions on /sitename/public/dispatch.* to 755
  6. make sure the first line of the dispatch.cgi and the dispatch.fcgi is #!/usr/local/bin/ruby
  7. Once it works in cgi, try fcgi by editing the .htaccess file again and changing this line RewriteRule ^(.)$ dispatch.cgi [QSA,L] to RewriteRule ^(.)$ dispatch.fcgi [QSA,L]
  8. I've also been able to use a domain pointer to point directly at the rails app. Just use the domain management control panel to point your extra domain to the /rails_apps/sitename/public directory.

Lest you think I'm full of BS :), this little test site is running on fcgi on godaddy's servers right now. Please be kind, it's just a test site :)

http://www.moyerfamily.name/movies/

Another important note, is that with GoDaddy, when using a rails app that's not in the root directory, such as the one above, you have to include the trailing slash in the address.

slshults commented 14 years ago

A more recent and more thorough thread: http://www.ruby-forum.com/topic/160146

slshults commented 14 years ago

Yeah, reading through the steps at the last url above it looks like it will work. the question is whether or not it is worth it.

slshults commented 14 years ago

do you have a VM you can try this on? I don't have any vmware setup and don't want to wreck my local workspace to try it. http://www.ruby-forum.com/topic/160146

slshults commented 14 years ago

site5 shall be the destination for the initial launch.