Radiant on eApps

Hi,
Has anybody succesfully configured Radiant on an eapps.com VPS? I have a
horrible time following the instructions at
http://support.eapps.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=108
I just can’t get the routes.rb modifications they are talking about to
work. I’m a RoR newbie so the part that is really confusing is that they
have a directory structure like:

virtual_domain/
html/
app/
components/
config/

and they tell me that to add my app (in this case Radiant) under /html
and then modify the routes.rb (I’m assuming the one at html/config (not
the one under html/app/config). Any ideas?

Thanks,
Brian

I’m not sure why you have a RAILS_ROOT/app/config directory?

You want to edit RAILS_ROOT/config/routes.rb

Here is more info on routes:
http://manuals.rubyonrails.com/read/chapter/65#page164

Hey Brian,

You’re right, Eapps instructions are not really helpful. I spent a
whole day trying to get a RoR site working with Eapps. All kinds of
issues. I understand your frustration.

You shouldn’t have an app/config directory. That’s odd. It should be
virtual_domain->html->config. Maybe you should delete the site and
start over - or delete everything under html and run ‘rails newapp’?

Do you see anything interesting in /var/log/httpd/error_log? or
/var/log/httpd/suexec.log?

-Todd
Send direct to me if you want to take this off list and we can report
back the solution to the list or dev wiki with Eapps instructions.

Maybe you should delete the site and
start over - or delete everything under html and run ‘rails newapp’?

Brian I think this suggestion Todd has is the best. “delete
everything” and then create a new rails app right there on your host.
Once you can get that working then you can move your code in place.

Michael et all,
You guys were right it was simply a matter of starting from scratch.
The
instructions at:

http://support.eapps.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=108&nav=0,1

Although poorly written are mostly correct. What they don’t explain
quite right is that in eApps the DocRoot is the …/html directory. The
setup comes with the plain vanilla RoR app installed there. So you can
see the welcome page if you got to:

http://yoursite/public

They recommend installing other Rails apps under /html so you’ll end up
with something like:

html/
±-+ror_app1
+ror_app2

The database.yml for MySQL as shown in the document is wrong:

development:
adapter: mysql
database: _development
username:
password:
socket: localhost

To get it to work I used this:

development:
adapter: mysql
database: radiant_dev
username: radiant
password: *******
socket: /var/lib/mysql/mysql.sock

Also for Radiant you should grab the dispatch.* files from a fresh app.
It somehow does like that ones distributed with Radiant. After that
things should work (except for the whole Radiant in a subdirectory
problem for which I’m still trying to figure out a good solution)

I’ll put a How To on the Wiki once I get that last glitch worked out.

Thanks,
Brian

Michael J. wrote:

Maybe you should delete the site and
start over - or delete everything under html and run ‘rails newapp’?

Brian I think this suggestion Todd has is the best. “delete
everything” and then create a new rails app right there on your host.
Once you can get that working then you can move your code in place.

cheap hosting for students http://javaprovider.net no one can beat them

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs