capistrano

Capistrano doesn't create puma.pid file

故事扮演 提交于 2020-01-04 05:39:09
问题 I use Capistrano to deploy my Rails app. However, when I deploy my application, puma.pid file is not being created, which leads to a problem - I can't restart server or deploy new version with capistrano - capistrano fails to stop puma , because puma.pid don't exests and it assumes no puma processes is running. And I get ADDRESS ALREADY IN USE error when capistrano tries to run another version of puma. Here is my deploy.rb lock '3.4.0' set :application, 'appname' set :repo_url, 'giturl' set

puma.sock missing in ec2 server after capistrano deployment

寵の児 提交于 2020-01-04 02:12:09
问题 I am getting the following error in the nginx error logs after deploying production a ruby on rails project through capistrano to an instance on ec2. The amazon public host shows a 502 Bad Gateway nginx/1.10.0 (Ubuntu). I followed the tutorial from https://www.sitepoint.com/deploy-your-rails-app-to-aws/ It seems the puma.sock is not being created when I run cap production deploy.. 2017/06/28 01:09:57 [crit] 12802#12802: *1 connect() to unix:/home/deploy/app_name/shared/tmp/sockets/puma.sock

git archive vs cp -R

孤街浪徒 提交于 2020-01-03 18:06:05
问题 If I have a clone of a git repository as a cached copy on a remote server for capistrano/vlad style deployment, is it better to do A) git archive --format=tar origin/master | (cd #{destination} && tar xf -) or B) cp -R cached-copy #{destination} && rm -Rf #{destination}/.git To clarify, the repository is already on the remote server, and I just want to copy a particular version to a releases directory on the same server during deployment. 回答1: I'd say actually rsync -avP /local/repo/* server:

git archive vs cp -R

試著忘記壹切 提交于 2020-01-03 18:00:14
问题 If I have a clone of a git repository as a cached copy on a remote server for capistrano/vlad style deployment, is it better to do A) git archive --format=tar origin/master | (cd #{destination} && tar xf -) or B) cp -R cached-copy #{destination} && rm -Rf #{destination}/.git To clarify, the repository is already on the remote server, and I just want to copy a particular version to a releases directory on the same server during deployment. 回答1: I'd say actually rsync -avP /local/repo/* server:

Rails 4 asset pipeline losing vendor assets

荒凉一梦 提交于 2020-01-03 08:59:30
问题 I can't seem to figure out how to make sprockets find assets in vendor/assets . I've ben been pushing off the problem by adding all of my assets to app/assets , but it's becoming way too cluttered. I have read the documentation, and tried adding all of the following lines to my application.rb file. config.assets.paths << "#{Rails.root}/vendor/assets/*" config.assets.paths << "#{Rails.root}/vendor/assets/fonts" config.assets.paths << "#{Rails.root}/vendor/assets/stylesheets" config.assets

Laravel deployment cache until server restart

风流意气都作罢 提交于 2020-01-03 06:04:11
问题 When I deployed my Laravel 4.2.9 application to a Ubuntu 14.04 server using Capistrano, it seems like all my php files are being cached by PHP, Laravel or Nginx. I have to manually restart the server to bust the cache and see any of my changes. Capistrano creates a new release directory on the server and runs a git checkout inside to get te last tagged version. When the deploy has been completed, the 'current' symlink will be updated to point to the the new release directory. The only shared

connection failed for: localhost (Errno::ECONNREFUSED: Connection refused - connect(2))

隐身守侯 提交于 2020-01-03 05:57:04
问题 I am using capistrano 2.15.5 for my rails application deployment. I am using localhost for server and have also tried with 127.0.0.1 in place of localhost. After running *cap production deploy:setup* the error that i am getting is: **Errno::ECONNREFUSED: Connection refused - connect(2)**. After searching for it i found out ECONNREFUSED means the client couldn't make a TCP connection to the server, either because it's down, or its DNS is not resolving. . how to fix this issue? thanks. 回答1: You

Capistrano git:check failed exit status 128

三世轮回 提交于 2020-01-03 04:18:08
问题 I got this when I ran cap production git:check . (I took out my real ip address and user name) DEBUG [4d1face0] Running /usr/bin/env git ls-remote -h foo@114.215.183.110:~/git/deepot.git on 114.***.***.*** DEBUG [4d1face0] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/deepot/git-ssh.sh /usr/bin/env git ls-remote -h foo@114.***.***.***:~/git/deepot.git ) DEBUG [4d1face0] Error reading response length from authentication socket. DEBUG [4d1face0] Permission denied (publickey,password). DEBUG

AWS Capistrano connection error

本小妞迷上赌 提交于 2020-01-03 02:22:10
问题 I am trying my first deployment of rails app using Capistrano to AWS. I am stumped at the following error. apparently connection issue for my ssh, though i could see both my public and private key files are present at the following location /home/thanikkal/.ssh/config (got added wen i did ssh-add) can anyone tell why this error is? or suggest further trouble shooting steps? executing `deploy:setup' executing "mkdir -p /home/ubuntu/myapp /home/ubuntu/myapp/releases /home/ubuntu/myapp/shared

setting up an EC2 server with rvm via scripting

爷,独闯天下 提交于 2020-01-02 18:07:03
问题 I'm looking for a way to install rvm, install a specific ruby version (using rvm) and set this installed ruby version as default. Before I can install rvm I have to install gcc and some other very basic software packages. What I've tried so far: 1) Using net/ssh I have to simulate a pseudo tty to be able to sudo some commands and up to now, I could not figure out, how to tell a success full command completion from a not success full one. after installing rvm, I've stumbled over problems using