Did you ever actually run that cap task?

cap spree_site

Nothing magically hooks a task that you create into the deploy chain, you have 
to either call it manually or use a before or after hook

If that task is not idempotent then I would only hook it into deploy:cold

after "deploy:cold", :spree_site

On Dec 11, 2011, at 11:05 AM, jay parteek <[email protected]> wrote:

> I changed the deploy.rb as below but no change, I am unable to use
> login functionality in production:  http://passionate4.net/
> 
> 
> namespace :deploy do
>  task :start do ; end
> 
>  task :spree_site, :roles => :db, :only =>{:primary => true} do
>   run "RAILS_ENV=#{rails_env} bundle exec rails g spree:site"
>  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
> 
> ==================================================
> 
> On Wed, Dec 7, 2011 at 9:45 PM, Donovan Bray <[email protected]> wrote:
>> Use the same pattern I suggested before
>> 
>> task :spree_site, :roles => :db, :only =>{:primary => true} do
>>  run "RAILS_ENV=#{rails_env} bundle exec rails g spree:site"
>> end
>> 
>> On Dec 7, 2011, at 8:47 AM, jay parteek <[email protected]> wrote:
>> 
>>> rails g spree:site
>> 
>> --
>> * 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
> 
> -- 
> * 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

-- 
* 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

Reply via email to