capistrano

On this workflow, does git command needs to be installed on the production server?

会有一股神秘感。 提交于 2019-12-12 02:07:47
问题 Developer A - Local Repository --> pulls/push ---> github Developer B - Local Repository --> pulls/push ---> github Capistrano would remain on our developers' machines, however we will define :repository to point to our GitHub project: set :repository, "git@github.com:myuser/myproject.git" # My clone url Developer A OR Developer B must be allowed to deploy committed files to the production machine. Question 1) Those committed files will come from one of the Developers machines, correct?

Rails 3.2.13 - Assets are not displayed in production

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 01:58:54
问题 I've spent the whole day trying to figure out this issue, but without any positive results. When I load my website, there are no CSS, images or working javascript. The app is running on Rails 3.2.13 and Capistrano 2. Here's my setup: config/environments/production.rb Appname::Application.configure do config.cache_classes = true config.consider_all_requests_local = false config.action_controller.perform_caching = true #config.serve_static_assets = false config.serve_static_assets = true config

Trying to deploy a Rails 4 app to WebFaction, using their documentation and getting an error locally

守給你的承諾、 提交于 2019-12-12 01:43:48
问题 I am trying to deploy a Rails 4 app via github to Webfaction via Capistrano 2.15.5. Initially I installed Capistrano 3 and was getting errors, so I ended up installing Capistrano 2.15.5 and following webfaction's documentation here: I spoke with webfaction, and they suggested I try the older Cap 2 version since that's what they're familiar with and wouldn't be updating their documentation for Capistrano 3 for awhile. I get through all the appropriate steps in their tutorial, and I get a bunch

Deploy application to localhost using Capistrano

谁说胖子不能爱 提交于 2019-12-12 01:36:35
问题 can somebody paste me "deploy.rb" file with configuration for LOCAL MACHINE ? Whenever i try to use cap local deploy i get onnection failed for: localhost (Errno::ECONNREFUSED: Connection refused - connect(2)) Configuration: set :branch, "master" set :deploy_to, "path/#{application}" set :domain, "localhost" role :app, domain role :web, domain role :db, domain, :primary => true Any help appreciated. 回答1: Anwser is very simple... SSH Agent was not enabled. 来源: https://stackoverflow.com

Deployment of Rails app using nginx, passenger and capistrano

我的梦境 提交于 2019-12-11 23:35:37
问题 I am deploying my first rails application. I have some trouble doing that. I will describe what I did till now. 1) I configured everything correctly by going through gorails.com 2) I am trying to deploy it on Digital Ocean 3) I performed cap deploy production and the end result was successful with some failures in middle. 4) I started nginx server 5) In my browser it gave me 500 error. 6) I checked my production.log and it showed all the migrations and seeds that it ran. It created tables

How to set a default shell or sudo to a user in capistrano 3

天涯浪子 提交于 2019-12-11 19:23:38
问题 I'm currently in the process of moving from Capistrano 2.x to 3.x for a rails application and running into the following issue. The general setup on the server contains a deploy user that should be the one responsible for deploying, however when a user goes to deploy, they connect to the server with their own user name. In Capistrano 2.x, I was able to accomplish this using the default_shell option. set :default_shell, "sudo -u deploy /bin/sh" This does not work in Capistrano 3.x. Is there

How do I use frozen Capistrano part 2?

孤街浪徒 提交于 2019-12-11 19:07:38
问题 Following on from my question on using frozen Capistrano a couple of days back I'm still having issues running Capistrano frozen in my vendor folder. When I try and run my frozen version of cap ruby -r rubygems ./vendor/gems/capistrano-2.5.2/bin/cap deploy-with-migrations I get an error ... RubyGem version error: net-ssh(1.0.8 not >= 2.0.0) (Gem::LoadError) ... I have net-ssh-2.0.4 frozen in my vendor folder as I knew it was a dependency so how do I make use of it? I'd hoped adding my vendor

Linking to multiple subdirectories using :repo_tree

江枫思渺然 提交于 2019-12-11 15:52:15
问题 My repository is set up similar to the following: repo_base - artwork - app - designsystem - api Since each of the other folders in the repo (e.g. app , api , designsystem ) depend on artwork , I have symlinks in place when running locally. This is working fine, as the path for images in the designsystem subdirectory is something like ../../artwork . When you check out the repository, the entire tree is checked out, so the symlinks are pointing to the correct directory. However, when I deploy

How to prevent Capistrano from displaying password when deploying

ぐ巨炮叔叔 提交于 2019-12-11 14:28:20
问题 I recently started deploying my rails apps using Capistrano, but I can't seem to figure out how to not display my password when deploying the app when it prompts me for my password. I get the following warning, Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text. I installed both of those gems, and my password is still being echoed in clear text. Any help would greatly be appreciated. 回答1: Add this in config/deploy/production.rb set :ssh

How to call a Capistrano's task within another Capistrano's task?

时光怂恿深爱的人放手 提交于 2019-12-11 13:28:21
问题 I'm trying to create a basic task for copying and linking database.yml file into my app, but I can't figure out why it s not working. I'm using Capistrnao 3.1 This is my lib/capistrano/tasks/databases.cap file : namespace :db_access do # Idea : https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md desc 'Copy production database.yml from local workstation' task :copy_production do on roles :all do execute :mkdir, '-p', "#{shared_path}/config" upload! 'config/deploy/production.database