guys.
OK. Trying to deploy a rails project on apache. Ive deleted the public/index.html file. I cant get past the “It works!” screen. Im guessing this is a routing issue – Ive got to give it the right document root so that it can find the homepage of the app I have created, right? Problem is, Ive tried everything – anything outside of the public folder doesnt seem to exist. Here is my apache sites-available file:
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot /home/feenix/public_html/CRRC/public
</VirtualHost>
I changed the rails root to “home#index”. Ive tried that as a document root for apache and it doesnt recognise it. Any help would be appreciated, as to where I should be looking for the correct document root – do I have to add something to the public folder in the rails project? Any help will be gratefully appreciated.
Cheers
It works! is the Apache default. That means you aren’t pointing properly at Rails yet.
You’ve got the DocumentRoot correct.
Do you have NameVirtualHosts *:80 setup? Also, is Passenger enabled? I’m assuming you’re using it.