Incomplete headers :/
Posted by: cbermar
Posted on: 2007-03-02 11:19:00
Hey,
Cant get my app (Beast, http://beast.caboo.se) to work, keep getting incomplete headers. I followed these steps:
1. in dreamhost control panel, create a sub-domain called y.x.com.
2. make sure FastCGI is enabled.
3. point the web root to y.x.com/trunk/public.
4. svn checkout http://svn.techno-weenie.net/projects/beast/trunk.
5. rake freeze_edge.
6. gem install RedCloth (already installed).
7. copy config/database.example.yml to database.yml and set it correctly.
8. rake db:schema:load RAILS_ENV=production (complains about ActiveRecord::VERSION, without RAILS_ENV param works fine).
9. change SALT in config/environment.rb.
10. update .htaccess so RewriteRule points to dispatch.fcgi.
11. add the RailsFCGIHandler class in dispatch.fcgi as dreamhost wiki explains.
12. update shebang line in public/dispatch.cgi, public/dispatch.fcgi and public/dispatch.rb.
13. set ENV['RAILS_ENV'] to ||= 'production' in config/environment.rb.
14. check permissions, specially public and log dirs (u+rwX,go-w).
15. check if all worked - alas, std 500 error response:
Application error
Rails application failed to start properly
Log files contains this:
logs/production: