I have created the database
edited database.yml
edited environment.rb
changed rights for dispactch.fcgi to 755
.htaccess uses .fcgi
and changed the symlinks.
I ran the command:
[~]# ruby script/setup_database production
and everything runs smoothly.No errors thrown and it says its created a
admin user with password as radiant.
Now when i try to access radiant, i get no error.My browser window is
blank.
I tried playing around with .htaccess by changing the dispatch.fcgi
entry to make sure it was using it.Now the problem could be somwhere
with the dispatch.fcgi
maybe i have got the #!/usr/bin/env ruby wrong …
any idea how i could verify?
Also, how do i restart the server? (it says i need to restart the server
when i change environment.rb or database.yml)
Does it seem i might have missed something, as i am not getting any
errors.
When i fire up the link to my /radiant/public, it does take some time to
process but the browser window is blank.
what does your database.yml look like?
database.yml =>
production:
adapter: mysql
database: gautam_radgeekprod
username: gautam_geek
password: abcde
socket: /tmp/mysql.sock
$script/setup_database production
runs fine and i get no errors for that.so i do not suspect a database
problem.
These are the key areas(as i have went thru prev posts).Error could be
due to one of these.
1.How to i know that the app has started? How can i stop and restart it?
2.When i submit the link to my radiant/public folder, it does seem to
process my request.But nothing is displayed on the browser
Have been going thru all files and ruby code.
Its a great learning experence
ok which option did you select in the setup database? if it is option 1
(someone correct me if Im wrong) but there will be no page data to show
so
it could potentially be doing what youre experiencing.
lemme complete the scenario a little more:
my website:www.gautam.com
addon domain:geek.gautam.com redirected to /public_html/geek/public
radiant is installed at /public_html/geek/
I have edited:
database.yml (for production)
environment.rb (for production)
dispatch.fcgi (made no change here)
.htaccess (made no change here)
when i keep an index.html in /public_html/geek/public.It works fine.
when i remove that, i get just a blank page(Firefox) or page cannot be
displayed(IE).
ok which option did you select in the setup database? if it is option 1
(someone correct me if Im wrong) but there will be no page data to show
so
it could potentially be doing what youre experiencing.
I chose option 3, the Full Weblog.
Congratulations, Gautam. What you ran into are typical problems when
setting up any Rails application. Unfortunately, without a little
experience and knowing the tricks, it can seem impossible. Nowadays, I
don’t even bat an eye when deploying one, but I’ve deployed many of
them, so I know all the pitfalls. Best of luck to you on your website!
ruby script/server OR # ruby script/server production and i got this
error log:
gautamsa@server [~/public_html/gforgeek]# ruby script/server
=> Booting WEBrick…
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:194:in establish_connection': development database is not configured (ActiveRecord::AdapterNotSpecified) from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:185:inestablish_connection’
from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:182:in initialize_database' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:84:inprocess’
from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:42:in run' from ./script/../config/../config/environment.rb:15 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in require' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:52 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in require' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require’
from script/server:3
The error seems to be as the development database is not configured.But
in environment.rb i has uncommented the line:
ENV[‘RAILS_ENV’] ||= ‘production’
Also, my databsae.yml has no entry for development, as i am setting this
up in poduction mode.
If you have shell access to your server, you can just ssh into it and
move
away the public_html (or www) directory and link radiant/public to
public_html (or www).
Thanks
There were many time when my friends were askin me to quit trying this
and go for a simpler PHP CMS setup, but i knew that you have to get it
done once and then it starts becomin easier (hopefully)
But the battle is far from over.
Though Radiant is workin fine on Webrick(port 3000) but i want it to be
working on the default webserver of my host(apache 1.3)
The CMS is running on Webrick means that all settings are fine, except
those of server.
I just need to figure it out how to get it working at the default
webserver.
My host had given me a mongrel port of 4021 … so went info config/
lighttpd.conf and changed 3000 -> 4021
Switched the symlink (like noted below) … and that was pretty much
it …
Im running off RailsPlayground w/ 1 mongrel instance. Everything
looks fine, just looking how/if to port Typo entries to Radiant and
if Im suppose to be able to modify CSS directly from the admin tool …
I usually have the same problem when trying to run my apps on apache
fcgi
the first time. I don’t understand why it happens, but you have to
reload
often the page in the first 5 minutes or so, and then it works.
There has to be a reason for this but I don’t know it and I’m happy it
works
@ Giovanni I.:
Yes i tried that.But doesnt work.All i get is a blank window on my
browser.It seems to be processing something and then displays nothing.
Where as when i run webrick it runs fine.so problem seems to be with
setting up the apache-fastcgi.But i cud b wrong…
Jon B. wrote:
Here are the following steps I did …
My host had given me a mongrel port of 4021 … so went info config/
lighttpd.conf and changed 3000 -> 4021
Switched the symlink (like noted below) … and that was pretty much
it …
Im running off RailsPlayground w/ 1 mongrel instance. Everything
looks fine, just looking how/if to port Typo entries to Radiant and
if Im suppose to be able to modify CSS directly from the admin tool …
Jon
My host has given me apache-fastcgi.And as radiant seems to be workin
well on webrick, i wonder why it is not with apache.
There were many time when my friends were askin me to quit trying this
and go for a simpler PHP CMS setup, but i knew that you have to get it
done once and then it starts becomin easier (hopefully)
OMG, you have friends who care about what CMS you use? Lucky guy!
I sense an oxymoron in “simpler PHP CMS”. Most PHP CMS systems I’ve
used or
evalutated were a bloody mess. Radiant has been extremely refreshing,
and
fun, thanks to John’s beautiful code and the power of Ruby.