Comments (10)
Just logged in to Wordpress and it's advising me to update so it seems the update of my production server didn't happen either?
from wp-deploy.
Hi @hamishtaplin to update wordpress within wp-deploy you need to do this in command-line.
With Capistrano being mainly a deployment tool, all of its commands require you to target an environment, for example staging or production. The wp:core:update
command you tried will always update locally, even if you specify a server.
So, try the following:
$ bundle exec cap staging wp:core:update
I can understand why you may have got a little confused by this, its not very intuitive and it could be worth rewording the task.
from wp-deploy.
Can I reopen this? I'm unable to deploy our website at the moment due to this problem...
from wp-deploy.
Hey @hamishtaplin, when you update wordpress you're essentially updating a folder, this is then ready to be committed to your repository and then deployed.
I've reopened this for now but this should solve your issue.
from wp-deploy.
Sorry I totally missed your first point about the stage being irrelevant, I understand now.
When I run bundle exec cap staging wp:core:update
the submodule updates but running git status
indicates that there's nothing to commit and therefore deploy.
from wp-deploy.
Not too sure what the problem is there. Can you try going into /wordpress and running git status
from wp-deploy.
HEAD detached at 4.0
from wp-deploy.
Ok I fixed this by running:
git reset --hard
git checkout master
git pull origin master
In the /wordpress dir.
All works now :)
from wp-deploy.
Hello, I had a similar problem.
I tried to update WP running bundle exec cap staging wp:core:update
.
My local WP has been updated (not the remote one).
I've commited changes, pushed and then I run bundle exec cap staging deploy
which is failed with this error:
The deploy has failed with an error: #<SSHKit::Command::Failed: git stdout: Nothing written git stderr: Nothing written
I fixed the error sshing the staging server running:
cd repo/wordpress
git fetch --tags
git checkout 4.0
After that the remote WP has been updated and deploy task run successfully.
Did I do something wrong or I should expect this behaviour?
from wp-deploy.
@coire1's solution worked for me. Running wp:core:update took my local WP submodule from 3.9.2 to 3.7.5.
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.