You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initially my app rails stack is rails (3.2.11) and mina (0.2.1 0.2.1 6939c3e). Later I have update my stack to rails (3.2.14) and mina (0.3.0). After updating when I try to deploy it gives me "sudo: no tty present and no askpass program specified " error. My deploy task looks like
desc "Deploys the current version to the server."
task :deploy => :environment do
deploy do
# Put things that will set up an empty directory into a fully set-up
# instance of your project.
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
invoke :'bundle:install'
to:launch do
queue "cd #{deploy_to}/current && RAILS_ENV=#{env} bundle exec rake state_json:state_json" if env == "staging"
queue "cd #{deploy_to}/current && RAILS_ENV=#{env} bundle exec rake assets:precompile"
queue "cd #{deploy_to}/current && touch tmp/restart.txt"
queue "cd #{deploy_to}/current && echo 'Branch deployed in this release = #{branch}' > current_deployed_branch.txt" if env == "staging"
queue "sudo monit restart sidekiq"
end
end
end
Could you help me where I went wrong?
The text was updated successfully, but these errors were encountered:
I have resolved this by adding user ALL=(ALL:ALL) ALL and %user ALL=(ALL) NOPASSWD: NOPASSWD: ALL on /etc/sudoers file where user would be your system login.
Initially my app rails stack is
rails
(3.2.11) andmina
(0.2.1 0.2.1 6939c3e). Later I have update my stack torails
(3.2.14) andmina
(0.3.0). After updating when I try to deploy it gives me "sudo: no tty present and no askpass program specified " error. My deploy task looks likeCould you help me where I went wrong?
The text was updated successfully, but these errors were encountered: