capistrano

Capistrano deploying to different servers with different authentication methods

核能气质少年 提交于 2019-12-24 05:42:38
问题 I need to deploy to 2 different server and these 2 servers have different authentication methods (one is my university's server and the other is an amazon web server AWS) I already have running capistrano for my university's server, but I don't know how to add the deployment to AWS since for this one I need to add ssh options for example to user the .pem file, like this: ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "test.pem")] ssh_options[:forward_agent] = true I have browsed

Capistrano deploying to different servers with different authentication methods

三世轮回 提交于 2019-12-24 05:42:05
问题 I need to deploy to 2 different server and these 2 servers have different authentication methods (one is my university's server and the other is an amazon web server AWS) I already have running capistrano for my university's server, but I don't know how to add the deployment to AWS since for this one I need to add ssh options for example to user the .pem file, like this: ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "test.pem")] ssh_options[:forward_agent] = true I have browsed

Rails assets aren't compiling after Capistrano deployment

故事扮演 提交于 2019-12-23 22:01:29
问题 I'm deploying my Rails app using Capistrano and it seems that the assets aren't being compiled unless I ssh into the server and run RAILS_ENV=development bundle exec rake assets:precompile manually. I've tried following the instructions on the capistrano/rails github page, but I'm not sure if I've missed something. Running cap production deploy completes successfully. But I don't know how to check whether the assets:precompile task was actually run. Running cap production deploy:assets

Capistrano run local command exit on failure

橙三吉。 提交于 2019-12-23 21:31:08
问题 I would like to run local commands and exit on failure of any command. whats the best way to do this with capistrano? run_locally will continue going on failure. Do i have to check the last commands exist status everytime (or create a custom run locally function)? 回答1: I had to create my own function like this: task :build_backend do run_local("echo hello") run_local("abcdef") run_local("echo 'not run'") end def run_local(cmd) system cmd if($?.exitstatus != 0) then puts 'exit code: ' + $?

How do I symlink my product images in production on a Capistrano deploy?

假装没事ソ 提交于 2019-12-23 21:30:18
问题 Here I received a solution to my problem that every time when I deploy my Spree Commerce app with Capistrano my images are removed (they are still there, but the folder names are wrong) and I have to add them again via admin. Both on this Google group and in the answer to the question it is said that symlinking is solution. You need to make sure that your RAILS_ROOT/public/spree directory is being symlinked in from the Capistrano shared directory and not recreated every time you deploy. If

Problems with cap deploy a symfony2 project, can't find app/bootstrap.php.cache

老子叫甜甜 提交于 2019-12-23 18:50:29
问题 I'm trying (for the first time) to use capifony to deploy my site from my github repo. It runs right through to the setup phase and has this error: ** [out :: example.me] PHP Warning: require_once(/var/www/example/prod/releases/20111208212344/app/bootstrap.php.cache): failed to open stream: No such file or directory in /var/www/example/prod/releases/20111208212344/app/console on line 4 ** [out :: example.me] PHP Fatal error: require_once(): Failed opening required '/var/www/example/prod

Capistrano RVM and Ubuntu RVM is not a function, selecting rubies with 'rvm use …' will not work

家住魔仙堡 提交于 2019-12-23 13:27:08
问题 I'm trying to deploy my app for the first time on a ubuntu server. I keep hitting this error: 2013-03-24 15:13:36 executing `deploy:run_migrations' * executing "rvm gemset use vapin" servers: ["111.111.111.11"] [111.111.111.11] executing command ** [out :: 111.111.111.11] ** [out :: 111.111.111.11] ** [out :: 111.111.111.11] RVM is not a function, selecting rubies with 'rvm use ...' will not work. ** [out :: 111.111.111.11] ** [out :: 111.111.111.11] ** [out :: 111.111.111.11] ** [out :: 111

Capistrano v3 - Hook to run command post deploy

一曲冷凌霜 提交于 2019-12-23 12:25:23
问题 I am using Capistrano to deploy to a server running Nginx. I'm running into some issues with APC and I need to reload PHP-FPM after Capistrano has completed the deployment. The issue itself is outlined here but like that author I don't want to have to SSH in and reload PHP-FPM remotely from the command line, I'd like Capistrano to do it as a post deployment hook. The essence of the deploy.rb being used is below; set :application, "deploytest" set :repository, "git@bitbucket.org:gitaccount/git

Capistrano deploy to different path on same server

若如初见. 提交于 2019-12-23 12:14:37
问题 I am trying to deploy my application using capistrano. But I want to deploy my application to multiple paths of the same server.For example If for the first run I want to deploy it to below path set :deploy_to, '/home/a/some_path/ Once completed the first one it should run for the second path that will be set :deploy_to, '/home/b/some_path/ and so on. Any suggestions how can I achieve this? Right now my single path deployment path is working AOK. 回答1: In your config file: set :deploy_to, ENV[

Why getting empty CSS files in Production?

拜拜、爱过 提交于 2019-12-23 12:08:25
问题 I had put many css files in the file active_admin.css.scss : // Active Admin's got SASS! @import "active_admin/mixins"; @import "active_admin/base"; @import "admin/plugins/*"; @import "admin/calendar"; @import "jquery-ui.css"; @import "admin/jquery.datepick.css"; But the files "jquery-ui.css" and "admin/jquery.datepick.css" are creating problems. I am getting the 404 Not Found error in the browser console for below : http://staging.xxx.com/assets/jquery-ui.css http://staging.xxx.com/assets