Search Amazon.com:
Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
  • Post
  • Reply
Xgkkp
Aug 20, 2004

by Lowtax


skidooer posted:

But I believe that people who are just trying to learn Rails now are probably suffering from the problems you mentioned.

Hello!

Truth be told I sort of learnt the basics a year ago, but have promptly forgotten everything. I'm managing, but I'm sure I'm not doing stuff the 'Rails 2.0' way.



Anyhow, I have run into a small problem: I'm making a site, with lots of static pages and then a couple of ruby pages for management and registration. How do I integrate the two? I don't want to have to make separate views for every single page (or dynamically generate them on every view with link_to's), but I can't just put in static pages and link to them normally, because then if I do relative links depending on which controller/method I am in they wil be invalid.

I can't do absolute links either, because that would presume that they are on the server root (.com/xxx) which is not guaranteed, and probably not the case.

Adbot
ADBOT LOVES YOU

Xgkkp
Aug 20, 2004

by Lowtax


So I've used capistrano/mongrel to deploy and run, as the 'agile development with rails' book suggested. Does anyone know if:

a) This is the best way to deploy it
b) it's worth, and possible, preventing mongrel from accepting incoming connections outside of apache (i.e. nothing but localhost - I can access it at servername:8000 publically)
c) How I can easily get it to start at system boot - at the moment, the instances are started by capistrano directly, which obviously will die if the server goes down.

Xgkkp
Aug 20, 2004

by Lowtax


This is almost a purely apache question, but can I use mongrel and have it running on, instead of it's own subdomain (someapp.serveraddress), the site being like a subfolder serveraddress/someapp ? All the guides I have found are the former.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply