capistrano

Capistrano asks for password when deploying, despite SSH keys

雨燕双飞 提交于 2019-12-29 10:13:51
问题 My ssh keys are definitely set up correctly, as I'm never prompted for the password when using ssh. But capistrano still asks for a password when deploying with cap deploy . It doesn't ask for the password when I setup with cap deploy:setup though, strangely enough. It would make the deployment cycle so much smoother without a password prompt. Specifics: I'm deploying a Sinatra app to a Dreamhost shared account (which uses Passenger). I had followed a tutorial for doing so long back, which

Starting background tasks with Capistrano

ε祈祈猫儿з 提交于 2019-12-29 04:13:26
问题 For my RubyOnRails-App I have to start a background job at the end of Capistrano deployment. For this, I tried the following in deploy.rb: run "nohup #{current_path}/script/runner -e production 'Scheduler.start' &", :pty => true Sometimes this works, but most of the time it does not start the process (= not listed in ps -aux). And there are no error messages. And there is no nohup.out, not in the home directory and not in the rails app directory. I tried using trap('SIGHUP', 'IGNORE') in

Capistrano is hanging when prompting for SUDO password to an Ubuntu box

China☆狼群 提交于 2019-12-28 12:02:51
问题 I have a capistrano deployment recipe I've been using for some time to deploy my web app and then restart apache/nginx using the sudo command. Recently cap deploy is hanging when I try to execute these sudo commands. I see the output: "[sudo] password for " With my server name and the remote login, but this is not a secure login prompt. The cap shell is just hanging waiting for more output and does not allow me to type my password in to complete the remote sudo command. Is there a way to fix

Capistrano is hanging when prompting for SUDO password to an Ubuntu box

霸气de小男生 提交于 2019-12-28 12:02:30
问题 I have a capistrano deployment recipe I've been using for some time to deploy my web app and then restart apache/nginx using the sudo command. Recently cap deploy is hanging when I try to execute these sudo commands. I see the output: "[sudo] password for " With my server name and the remote login, but this is not a secure login prompt. The cap shell is just hanging waiting for more output and does not allow me to type my password in to complete the remote sudo command. Is there a way to fix

Trouble using Capistrano with a local git repository

霸气de小男生 提交于 2019-12-25 18:41:35
问题 I'm trying to use Capistrano to deploy my Zend Framework application using a git repository. I'm deploying from a Windows 7 machine to an Ubuntu server. I've created the repository, and whenever I try running cap:deploy, I get the following errors: ** [hostname.domain :: out] fatal: '/home/<username>/web_docs/<appname>' does not appear to be a git repository ** [hostname.domain :: out] fatal: The remote end hung up unexpectedly I have sanitized copy of my deploy.rb file here. I've got a

Capistrano 3.1 deploy failed - bitbucket on windows 10 - “Error reading response length from authentication socket.”

做~自己de王妃 提交于 2019-12-25 16:19:08
问题 I am actually getting a project back from another developer. I have a windows 10 machine, the repo is on bitbucket. I have my ssh agent started and my ssh key added each time I launch my command line client (cmder). I can connect to ssh -T git@bitbucket.org , to my server so the ssh key seems to work. I can also run ssh -T git@bitbucket.org from my server and it is fine too. My ruby version is 2.3.* and it doesn't seem to be a net-ssh problem. On my ssh config file I have added the Host

Best Practices for Incremental Seeds with Capistrano

别说谁变了你拦得住时间么 提交于 2019-12-25 12:09:13
问题 RoR 3.2.13 and 3.0.1 capistrano My application requires initial data via rake db:seed . My continuous integration server does automatic deployment each time someone join a new feature and all test pass. Among the latest task is rake db:seed . The first time works fine, but in the following fail the seeds because some records already exist in database. Which strategy suggest me to run the seeds incrementally. Note that: The seeds may vary over time. The application already contains data on

Every time I deploy with Capistrano two images are removed from my page

主宰稳场 提交于 2019-12-25 10:57:21
问题 I have a Spree Webshop Ruby on Rails application. Every time I run cap deploy and I look at my page, two of the three product images that are displayed on the mainpage are gone. The two images still display at the admin page as an alternative text (so not the actual image). When I click it I get the following message: No route matches [GET] "/spree/products/7/product/imagename.png" Rails.root: /rails/releases/20140127203640 There is no difference between how I handled the images, I all added

capistrano 3 + rvm1-capistrano3 rails 4.1 secrets.yml environmental variables issue

徘徊边缘 提交于 2019-12-25 05:13:36
问题 I have been deploying rails 4.1 application with capistrano 3. it has been working fine. but when i tried to do rake tasks (uncommenting require 'capistrano/rails/assets'). i get this error cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host xxx.xxx.xxx.xxx: rake exit status: 1 rake stdout: Nothing written rake stderr: config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly: * development - set it to false * test - set it to

~/.ssh/id_rsa.pub not found error while installing capistrano as ansible playbook

空扰寡人 提交于 2019-12-25 03:15:46
问题 I try to install https://github.com/roots/bedrock-ansible to get a bedrock deployment (http://roots.io/wordpress-stack/) running. When I run "vagrant up", after some time I get the error: TASK: [capistrano-setup | Setup deploy group] ********************************* skipping: [default] TASK: [capistrano-setup | Setup deploy user] ********************************** skipping: [default] TASK: [capistrano-setup | Adding public key to server] ************************ fatal: [default] => could not