2nd try at pasting deploy.rb. (I obviously don't know how to use gist
with this group.)
git://gist.github.com/247261.git
set :user, "remote_user"
set :application, "core"
set :scm, "git"
set :repository, "ssh://www.myapp.com/home/jamie/git/myapp.git"
set :branch, "master"
set :scm_verbose, true
set :use_sudo, false
#
=============================================================================
# Deploy core application in development environment.
#
=============================================================================
desc "Set configuration variables for the development environment."
task :dev do
role :web, "dev.myapp.com"
role :app, "dev.myapp.com"
role :db, "dev.myapp.com", :primary => true
set :deploy_to, "/home/#{user}/myapp.dev"
end
#
=============================================================================
# Deploy core application in production environment.
#
=============================================================================
desc "Set configuration variables for the production environment."
task :production do
role :web, "www.myapp.com"
role :app, "www.myapp.com"
role :db, "www.myapp.com", :primary => true
set :deploy_to, "/var/www/myapp"
end
#
=============================================================================
# Tasks to Restart the application.
#
=============================================================================
namespace :deploy do
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
end
On Dec 2, 7:08 am, Jamie <[email protected]> wrote:
> Here is deploy.rb.
>
> <script src="http://gist.github.com/247261.js"></script>
>
> On Dec 1, 8:58 am, "Rafael G." <[email protected]> wrote:
>
> > Jamie wrote:
> > > I'm attempting my first deployment using Capistrano. The recipe
> > > includes
>
> > > set :user, "remote_user"
>
> > > When I attempt "cap deploy" I'm prompted for
>
> > > [email protected]'s password:
>
> > > Of course the local_user has no account on the remote server so I
> > > can't get past this. The weird thing is I was successfully able to
> > > "cap deploy:setup" with the same recipe.
>
> > > The local machine is a Mac OS X 10.4.11 with an Intel processor. The
> > > remote machine is running Ubuntu 9.04.
>
> > Could you paste your deploy.rb ?
>
> > --
> > 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