๐ Hi, Iโm @sepastian.
sepastian / capistrano-unicorn Goto Github PK
View Code? Open in Web Editor NEWThis project forked from sosedoff/capistrano-unicorn
Capistrano 3.x integration for Unicorn!
License: MIT License
This project forked from sosedoff/capistrano-unicorn
Capistrano 3.x integration for Unicorn!
License: MIT License
๐ Hi, Iโm @sepastian.
Hey,
today I've upgraded one of my apps from capistrano 3.3.5 to 3.4.0 and noticed that the unicorn tasks are no more executed. After tracking the issue a bit down I've found the culprit:
At the moment the :reject
is passed to the roles
method instead of the on
.
Adding parentheses "solved" the issue for me.
...
desc 'Start Unicorn master process'
task :start do
- on roles unicorn_roles, reject: lambda { |h| h.properties.no_release } do
+ on roles(unicorn_roles), reject: lambda { |h| h.properties.no_release } do
execute start_unicorn
end
end
...
But I'm not sure because I don't have enough insight into capistrano's architecture.
Best, Klaus
The following line
require "capistrano/unicorn"
has to be added to the capfile
rather than deploy.rb
. Please update this in docs.
Before diving down this path, would it make sense to try to merge both this and @sosedoff's gems together into one for both Capistrano 2 & 3 support under one gem and namespace?
Would @sepastian and @sosedoff be ammenable to that?
My preposal would be:
lib/capistrano/unicorn/
to model how the other Capistrano gems are modeled (i.e. Capistrano Rails, Capistrano Rbenv, etc... )Whenever I do cap production unicorn:start
I get the following error:
DEBUG [5a1498ab] Starting Unicorn...
DEBUG [5a1498ab] Starting Unicorn...
DEBUG [5a1498ab] bash: bundle: command not found
However, if I start unicorn manually then cap production unicorn:stop
works as expected.
Hi,
I have recently updated ruby (2.2.4 -> 2.3) and every cap unicorn task stopped working.
Trace:
** Invoke bundler:map_bins (first_time)
** Execute bundler:map_bins
** Invoke unicorn:start (first_time)
** Execute unicorn:start
... and nothing happens. No unicorn was stopped/started/restarted.
I am using latest:
Any ideas what went wrong ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.