Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to install Wordmove on Windows 10 with Bash
Install Bash (Windows Subsystem for Linux)
This is only available on Windows 10.
- Open Control Panel.
- Click on Programs and Features.
- Click on Turn Windows features on or off.
- Check Windows Subsystem for Linux (beta).
- Click OK and reboot.
- Open the program "Bash on Ubuntu on Windows" in the Start menu.
- Create a Linux username.
Install Ruby and Wordmove
Run the following commands in Bash:
sudo apt-get install rubygems-integration
sudo apt-get install ruby-dev
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.4
sudo apt-get install build-essential
sudo gem install wordmove
Run the following command in Bash:
ssh-keygen -t rsa
Go to the folder: %localappdata%\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home\LINUX_USERNAME\.ssh
To see this folder you have to uncheck "Hide protected operating system files" in the folder and search options.
Here you can find your public SSH key ~\.ssh\id_rsa.pub.
Go to the admin panel of your host, e.g. https://www.siteground.com, and add this key in the SSH options.
For the movefile you need to consider the following two things
- The path has to be the Linux path: replace "C:\" with "/mnt/c/" and replace all backslashes with a forward slash "/"
- To connect to MySQL the host should be "127.0.0.1" instead of "localhost"
local: wordpress_path: "/mnt/c/PATH_TO_WORDPRESS/" host: "127.0.0.1"
On Windows all file and folder permissions are 777. To set the correct permissions (755 for folders and 644 for files) on the server use:
ssh: rsync_options: "--chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r"
Now you can use wordmove from "Bash on Ubuntu on Windows"
wordmove push -e production --all