GithubHelp home page GithubHelp logo

Comments (10)

hamishtaplin avatar hamishtaplin commented on May 31, 2024

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.

lukewhitehouse avatar lukewhitehouse commented on May 31, 2024

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.

hamishtaplin avatar hamishtaplin commented on May 31, 2024

Can I reopen this? I'm unable to deploy our website at the moment due to this problem...

from wp-deploy.

lukewhitehouse avatar lukewhitehouse commented on May 31, 2024

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.

hamishtaplin avatar hamishtaplin commented on May 31, 2024

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.

lukewhitehouse avatar lukewhitehouse commented on May 31, 2024

Not too sure what the problem is there. Can you try going into /wordpress and running git status

from wp-deploy.

hamishtaplin avatar hamishtaplin commented on May 31, 2024

HEAD detached at 4.0

from wp-deploy.

hamishtaplin avatar hamishtaplin commented on May 31, 2024

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.

coire1 avatar coire1 commented on May 31, 2024

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.

ryanjkoehler avatar ryanjkoehler commented on May 31, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.