set :application, "my-server"
set :repository, "."
set :scm, :git
set :user, "ning"
set :deploy_to, "/home/#{user}/#{application}"
set :use_sudo, false
set :deploy_via, :copy
set :copy_remote_dir, "/home/#{user}"
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`,
`perforce`, `subversion` or `none`
role :web, application # Your HTTP server,
Apache/etc
role :app, application # This may be the same
as your `Web` server
role :db, application, :primary => true # This is where Rails
migrations will run
role :db, application
# If you are using Passenger mod_rails uncomment this:
# if you're still using the script/reapear helper you will need
# these http://github.com/rails/irs_process_scripts
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true }
do
run "#{try_sudo} touch #{File.join
(current_path,'tmp','restart.txt')}"
end
end
I used mod_rails and default install nginx.
I get not error from /opt/nginx/logs/access.log and error.log
shared/logs/production.log doesn't have error too.
On Jan 30, 1:33 pm, "Rafael G." <[email protected]> wrote:
> nnn wrote:
> > I'm new to capistrano, everything is going to smooth, cap
> > deploy:setup, cap deploy:check deploy:cold.
> > my application work well.
> > but when I change my local code, even something like added <h1>new
> > added</h1> into something view file and run cap deploy, then open
> > browser, it always give me a 500 error.
> > go through search engine, doesn't get why.
>
> > hope somebody give me a help.
>
> Could you paste your deploy.rb in some place (gist,pastie,...) and your
> rails log ?
>
> Thanks
>
> --
> Rafa
--
* 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.com/group/capistrano?hl=en