You can't symlink to a Symlink, Apache won't (probably) honour that. You must do this:
set :current_path, 'current/public_html' And try that, here's a snippet from mine that deploys on cpanel: set :application, "website" set :repository, "[email protected]:leehambley/#{application}.git" set :deploy_to, "/home/hambley/" set :current_path, "/home/hambley/public_html/lee" My Vhost has: DocumentRoot "/home/hambley/public_html/lee" Site at http://lee.hambley.name/ (so mine is public_html/lee) Hope this helps -- Lee Hambley Twitter: @leehambley Blog: http://lee.hambley.name/ Working with Rails: http://is.gd/1s5W1 2009/8/28 hendri firmana <[email protected]> > thanks for your respond, it's true, my english is bad, sorry for this. ok > i'll post the deploy file.... > > require 'deprec' > > > set :application, "staging.net" > set :domain, "192.168.1.99" > set :rails_env, "production" > > # If you aren't using Subversion to manage your source code, specify > # your SCM below: > > set :ruby_vm_type, :ree > set :web_server_type, :apache > set :app_server_type, :passenger > set :db_server_type, :mysql > > #set :packages_for_project, %w(libmagick9-dev imagemagick libfreeimage3) # > list of packages to be installed > #set :gems_for_project, %w(rmagick mini_magick image_science) # list of > gems to be installed > # Update these if you're not running everything on one host. > > role :app, domain > role :web, domain > role :db, domain, :primary => true > > > # If you aren't deploying to /opt/apps/#{application} on the target > # servers (which is the deprec default), you can specify the actual > location > # via the :deploy_to variable: > > > default_run_options[:pty] = true > set :repository, "[email protected]:xxxx/xxx.git" > set :scm, "git" > set :user, "deploy" > set :admin_runner, "deploy" > set :deploy_via, :remote_cache > set :deploy_to, "/srv/www/#{application}" > > > set :branch, "hendri" > set :git_shallow_clone, 1 > set :git_enable_submodules, 1 > > set :chmod755, "app config db lib public vendor script script/*" > set :use_sudo, false > > > > set :ssh_options,{ :forward_agent=>true} > > namespace :deploy do > task :start, :roles => :app do > run "touch #{current_release}/tmp/restart.txt" > end > > task :stop, :roles => :app do > # Do nothing. > end > > desc "Restart Application" > task :restart, :roles => :app do > run "touch #{current_release}/tmp/restart.txt" > end > end > > > and this my virtual host > > > <VirtualHost *:80> > ServerAdmin [email protected] > ServerName staging.net > ServerAlias www.ionasia.net > DocumentRoot /srv/www/staging.net/public_html > ErrorLog /srv/www/staging.net/logs/error.log > CustomLog /srv/www/staging.net/logs/access.log combined > > </VirtualHost> > > on my ubuntu server, after deploy like this : > > /srv/www/staging.net/ ----> show folder of current, releases, shared, logs > and public_html, > > and i create symlink with command....ln -s /srv/www/ > ionasia.net/current/public/ /srv/www/ionasia.net/public_html, > > in my browser i put 192.168.1.99 and show only the app public folder... > > if i put *staging.ne*t--->server not found.... > > i don't understand, maybe the problem from dns, passenger, etc or something > wrong witt my configuration..... > > i hope you understand what i'm saying.... > > thank so much for your advice.... > > --hendri > > 2009/8/27 Lee Hambley <[email protected]> > > Hendri, >> I'm struggling with your message, as your English is bad... please post >> your deploy.rb and your virtual host config from Apache. >> >> The symlink is there as the tutorials are short-sighted, most often, >> there's no problem using a symlink, to Unix there is *very* little >> difference; especially under Ubuntu. >> >> -- Lee Hambley >> >> Twitter: @leehambley >> Blog: http://lee.hambley.name/ >> Working with Rails: http://is.gd/1s5W1 >> >> >> 2009/8/27 hendri <[email protected]> >> >> >>> i'm sorry, i'm confusing now...i try to deploy my first project to >>> ubuntu server using git and capistrano...but i have a problem... >>> >>> 1. when i finished to deploy to the server phusion passenger not >>> showing, on my browser only showing index file of public folder >>> application...when write command passenger status, iget an error : >>> "ERROR: Cannot query status for Passenger instance 4909:"...i dont >>> understand with this massage... >>> 2. i don't understan with the current folder on my virtual host, cause >>> every tutorial suggest not symlinks to this folder always in >>> application... >>> >>> would you like to help me... >>> >>> regards, >>> hendri >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Capistrano" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.co.uk/group/capistrano?hl=en -~----------~----~----~----~------~----~------~--~---
