Comments (4)
I have now discovered that if I change the Capistrano version in config/deploy.rb
from 3.1.0 to 3.2.1 and leave the version in Gemfile.lock
as 3.1.0 you end up getting the following error message when running a Capistrano command:
cap aborted!
Capfile locked at 3.2.1, but 3.1.0 is loaded
I then thought I was going to be clever and change the version number in Gemfile.lock
to
specs:
capistrano (>= 3.1.0)
but this just returns the following error when running a Capistrano command:
Malformed version number string >= 3.1.0 (ArgumentError)
So instead my Gemfile.lock
file now looks like this:
specs:
capistrano (3.2.1)
from wp-deploy.
First off, you should always make sure you use bundle exec
when you're running Capistrano commands to ensure you're executing the bundled version (3.1.0) rather than the global version you have installed on your machine (presumably 3.2.1).
The reason we've locked the config (and bundle) at 3.1.0 is to avoid compatibility issues with future versions of Capistrano.
You should never directly edit your Gemfile.lock
β that will be why you're getting the malformed version string error. Instead, you should the Gemfile
then run bundle update capistrano
which will update the lock file for you. However, I wouldn't recommend updating the bundle as I can't ensure wp-deploy will work with all future versions of Capistrano.
from wp-deploy.
As you have probably realised, I have/had zero experience with Ruby until I started working with Capistrano.
All of the confusion in this issue prompted me to do a bit of research. I found the following page very helpful in explaining the rationale behind the Gemfile
from wp-deploy.
Likewise, I'm also not a Ruby developer β my experience is limited to the work I do with this framework and a couple of other minor closed-source projects. The README for this assumes a basic understanding of Bundler and Gemfiles, but perhaps I should clarify that a little more in the documentation.
from wp-deploy.
Related Issues (20)
- I created a project wp-deploy-easy HOT 1
- Relink submodule HOT 1
- .wpignore What does it do? HOT 2
- Unable to specify port HOT 4
- uploads:push timeout HOT 3
- Installation issue HOT 4
- wp:plugins:pull HOT 4
- SSHKit::Runner::ExecuteError: Exception while executing as user@domain: git exit status: 1 HOT 5
- ERROR: The themes directory is either empty or doesnβt exist HOT 1
- no alternative certificate subject name matches target host name 'core.git.wordpress.org' HOT 1
- A simple 'ENTER' without typing confirms the overwriting of the db HOT 2
- com
- Add a possibility to use docker in order to develop the site locally. HOT 4
- Wordfence issues with .gitignore HOT 2
- db:push breaks emojis HOT 3
- mysql dump on the ha branch needs password escaping HOT 1
- VisualComposer CSS files reference uploads
- ignore robots.txt? HOT 1
- Is the project still active? HOT 2
- Wp cli not loading plugins commands
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-deploy.