capistrano

Bundler in deployment mode does not find Gems

有些话、适合烂在心里 提交于 2020-01-06 19:49:13
问题 I was heavily struggling with my Capistrano Setup, when my Hoster migrated the server: Capistrano3 deploy fails after migrating the server One thing I ran into that used to work just fine on the old machine and now seems to be a mess is bundler: I could successfully run bundler through Capistrano: cap staging bundler:install This resulted in the following command on the server /usr/bin/env bundle install --binstubs \ /var/www/mydomain.com/subdomains/dev/shared/bin \ --path /var/www/mydomain

What's the URL for rails app deployed by Capistrano

喜你入骨 提交于 2020-01-06 05:03:27
问题 Here is the code in deploy.rb set :application, "myapp" server "10.15.169.45", :web, :app, :db, :primary => true What's the URL accessing the web app after deployment? Tried http://10.15.169.45 and http://10.15.169.45/myapp and none of them worked. http://10.15.169.45 displayed "Welcome to nginx". Any suggestions? thanks. 回答1: Capistrano just posts the files to the server, and runs some additional tasks (if you tell it to). It is not responsible for serving the page. Given that you said that

capistrano with ubuntu ec2 instance to deploy ruby on rails

半腔热情 提交于 2020-01-06 02:55:07
问题 I am trying to implement ruby on rails app using Capistrano, I am running apache rvm in the staging server and nginx REE version in production server. I am using git also. I have been try to integrate Capistrano but I am getting the this error (Net::SSH::AuthenticationFailed: ubuntu) Here is my deploy.rb file set :application, "capify" # The directory on the EC2 node that will be deployed to set :deploy_to, "/home/ubuntu/apps/#{application}" set :keep_releases, 3 # deploy with git set :scm,

Symfony2 Constraint Class not found

不打扰是莪最后的温柔 提交于 2020-01-05 19:31:31
问题 Everything is ok in my dev environment on my local machine. However, on my new staging server, I get an error on my registration page only (as far as I can see): PHP Fatal error: Class 'Symfony\Component\Validator\Constraints\notNull' not found in /var/www/sf-ysu/shared/vendor/symfony/symfony/src/Symfony/Component/Validator/Mapping/Loader/AbstractLoader.php on line 63 I use capifony for deployment, which means my vendor directory is symlinked to another location. This might have something to

rails script using whenever gem error: __rvm_add_to_path: command not found

一曲冷凌霜 提交于 2020-01-05 07:59:21
问题 I'm using capistrano and the whenever gem. Capistrano deploys and updates the crontab on our ubuntu server with the cronjob detailed out in our schedule.rb file. But the cronjob doesn't happen. It fails and emails me every 5 minutes this error: /etc/profile.d/rvm.sh: line 67: __rvm_add_to_path: command not found /home/pkatepalli/.rbenv/versions/1.9.3-p448/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler/setup (LoadError) from /home/pkatepalli/.rbenv

Capistrano still trying to connect to my old repo

亡梦爱人 提交于 2020-01-05 04:36:09
问题 I have changed my repo to Github.com from Cadaset.com and changed the repository setting in my deploy.rb file to my new Github repo. When I run cap deploy it still tries to connect to my old repo on Codaset.com. I cant find any reference to my old repo so cant see why it is doing this. I have tried cap deploy:setup that works but then I get the same error on cap deploy 回答1: You have to delete the shared copy on your server stored at PATH_TO_APP/shared/cached-copy . Remove the cached-copy

Rails 4 + Capistrano 3: deploy:check not working

旧街凉风 提交于 2020-01-04 11:12:02
问题 I can SSH successfully to my server. However, when I do deploy:check , it gives me this: Nets-Mac-Pro:mysite emai$ be cap staging deploy:check INFO[e67f845c] Running /usr/bin/env mkdir -p /tmp/mysite-staging/ on mysite-staging.nettheory.com DEBUG[e67f845c] Command: /usr/bin/env mkdir -p /tmp/mysite-staging/ Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text. Enter passphrase for /Users/emai/.ssh/id_rsa: Enter passphrase for /Users/emai/

Rails 4 + Capistrano 3: deploy:check not working

江枫思渺然 提交于 2020-01-04 11:11:44
问题 I can SSH successfully to my server. However, when I do deploy:check , it gives me this: Nets-Mac-Pro:mysite emai$ be cap staging deploy:check INFO[e67f845c] Running /usr/bin/env mkdir -p /tmp/mysite-staging/ on mysite-staging.nettheory.com DEBUG[e67f845c] Command: /usr/bin/env mkdir -p /tmp/mysite-staging/ Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text. Enter passphrase for /Users/emai/.ssh/id_rsa: Enter passphrase for /Users/emai/

SSH agent forwarding with Capistrano 3 not working when deploying Rails app

放肆的年华 提交于 2020-01-04 09:03:32
问题 I have the following setup in my deploy.rb set :application, 'sample_app' set :repo_url, 'user@123.45.67.100:/home/user/railsapps/sample_app' set :deploy_to, '/var/www/sample_app' set :user, "user" set :ssh_options, { :forward_agent => true } and my deploy/production.rb file: set :stage, :production server '123.45.67.200', user: 'user', roles: %w{app db web} I get the following error when I run cap production deploy:check DEBUG [] ssh: connect to host 123.45.67.100 port 22: Connection timed

Symfony2 Capistrano deploying to CDN

给你一囗甜甜゛ 提交于 2020-01-04 05:53:18
问题 I've got a Symfony2 application which I am deploying to development, staging and production servers using Capistrano. However, I'm looking to also setup a CDN to serve static content such as images, css, js files etc. The URL for the CDN for example is static.example.com. I've read that I simply need to add the following to my config_prod.yml file: framework: templating: engines: ['twig'] assets_base_urls: http: [http://static.example.com] However, when deploying using capistrano would I need