PDA

View Full Version : Deploying Rails application under DirectAdmin



wdeboer
07-22-2008, 04:06 AM
I am currently using mod_passenger succesfully on my DirectAdmin enabled webserver. Only now I would like to deploy rails applications using Capistrano. Only I have some trouble to get it working in such manner that I don't need to alter the httpd.conf file of the user.

Does anyone have a working Capistrano? My script can be found at:
http://www.pastie.org/238479

If anyone know how I can alter httpd.conf in some way that it doesn't rewrite the virtual host... like using the Custom HTTPD options. That would be awesome too!

Thanks

littleoak
07-22-2008, 09:24 AM
I just want to chime in and say this would be useful to us too if anyone has done it successfully.

wdeboer
07-22-2008, 11:35 AM
You can use the following line to change the DocumentRoot of a user using the Custom HTTPD Configuration option of the admin user:

|?DOCROOT=/home/wdeboer/domains/preview.clients.nl/public_html/preview/public|

Now I only need to fix my capistrano script in such manner that I won't get permission errors when using the normal public_html folder as DocumentRoot

mta
09-24-2008, 12:17 PM
Have you found a way to automate this ( ie. specify at time of site creation ).