Newbie questions for publish the site

1. Yes upload all created folders.
2. Because in your database.yml file you should tell it which database
is which. Then you can set "development" and "production" in
config.rb.
A. Ensure that dispatch.cgi/.fcgi/.rb are all 755 (CHMOD 775,
properties->executable, etc)
B. If that doesn't work, post the apache error logs.

2. > 1) I need upload all created folders (app, components, config,
db, doc,

kopf1988,

1) I change dispatch.cgi/.fcgi/.rb to 755
2) I change to ENV['RAILS_ENV'] ||= 'production', in environment.rb
3) Don't work, below the apache error log:

Premature end of script headers:
/home/myuser/public_html/rubytest/public/dispatch.cgi