I can tell that the apache.conf included with the code in config directory is being symlinked in sites-available. But why is this necessary? I have already setup my apache by adding the exact same virtual host in my 'sites-enabled' directory and it works. So why copy it in sites-available, especially if apache doesn't read the config form that directory?
Just learning about Capistrano. Awesome tutorial!
Can you please explain what exactly is this line for?
sudo "ln -nfs #{current_path}/config/apache.conf /etc/apache2/sites-available/#{application}"
I can tell that the apache.conf included with the code in config directory is being symlinked in sites-available. But why is this necessary? I have already setup my apache by adding the exact same virtual host in my 'sites-enabled' directory and it works. So why copy it in sites-available, especially if apache doesn't read the config form that directory?