Installing and Configuring Wordmove on Ubuntu 16.04

Wordmove helps you manage multiple WordPress environments, allows you to automatically mirror your local WordPress installations and DB data from your local development machine to a remote hosting server. Wordmove is written in Ruby, and requires some dependencies to install properly before you can use it to install a WordPress installation with incredible ease.

We will also show the main configuration files for Wordmove to set up multiple environments.

Installing Wordmove on Ubuntu 16.04

We need to grab a bunch of dependencies for Wordmove to work

sudo apt update
sudo apt install curl git libcurl4-openssl-dev make zlib1g-dev gawk g++ gcc libreadline6-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison gzip pkg-config ruby ruby-bundler ruby-dev -y

Installing Wordmove Ruby

gem install wordmove

You will get a bunch of output showing installing Ruby dependencies

Fetching: colorize-0.7.7.gem (100%)
Successfully installed colorize-0.7.7
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: thread_safe-0.3.5.gem (100%)
Successfully installed thread_safe-0.3.5
Fetching: tzinfo-1.2.2.gem (100%)
Successfully installed tzinfo-1.2.2
Fetching: activesupport-4.2.7.1.gem (100%)
Successfully installed activesupport-4.2.7.1
Fetching: net-ssh-3.2.0.gem (100%)
Successfully installed net-ssh-3.2.0
Fetching: net-scp-1.2.1.gem (100%)
Successfully installed net-scp-1.2.1
Fetching: net-ssh-gateway-1.2.0.gem (100%)
Successfully installed net-ssh-gateway-1.2.0
Fetching: photocopier-1.1.1.gem (100%)
Successfully installed photocopier-1.1.1
Fetching: wordmove-2.0.0.gem (100%)
    Starting from 2.0.0 Wordmove will compress SQL dumps both in remote and locale environments.
    If something will broke, please check if gzip executable is present locally and
    remotely. We are considering obvious it's installed in any web environment.
    Open an issue on github at your needs.
Successfully installed wordmove-2.0.0
Parsing documentation for colorize-0.7.7
Installing ri documentation for colorize-0.7.7
Parsing documentation for i18n-0.7.0
Installing ri documentation for i18n-0.7.0
Parsing documentation for thread_safe-0.3.5
Installing ri documentation for thread_safe-0.3.5
Parsing documentation for tzinfo-1.2.2
Installing ri documentation for tzinfo-1.2.2
Parsing documentation for activesupport-4.2.7.1
Installing ri documentation for activesupport-4.2.7.1
Parsing documentation for net-ssh-3.2.0
Installing ri documentation for net-ssh-3.2.0
Parsing documentation for net-scp-1.2.1
Installing ri documentation for net-scp-1.2.1
Parsing documentation for net-ssh-gateway-1.2.0
Installing ri documentation for net-ssh-gateway-1.2.0
Parsing documentation for photocopier-1.1.1
Installing ri documentation for photocopier-1.1.1
Parsing documentation for wordmove-2.0.0
Installing ri documentation for wordmove-2.0.0
Done installing documentation for colorize, i18n, thread_safe, tzinfo, activesupport, net-ssh, net-scp, net-ssh-gateway, photocopier, wordmove after 13 seconds
10 gems installed

Wordmove is now installed, we plan to do detailed configuration in the future, but for now it’s enough to get you started.

Initial Wordmove Configuration

Enter your home directory, create a new folder for MoveFile configurations and initialize the first MoveFile

cd ~
mkdir andreyexstaging
cd andreyexstaging
wordmove init

Open MoveFile

nano Movefile

You will see a section localwhich is meant to link to local installation

Make sure you provide the absolute path to the database and credentials.

If you plan on using SSH keys, look at here

local:
  vhost: "http://vhost.local"
  wordpress_path: "/root/staging" # здесь использовать абсолютный путь

  database:
    name: "database_name"
    user: "user"
    password: "password"
    host: "127.0.0.1"

You should also generally have production.

Wordmove will connect using SSH or FTP to execute remote commands – FTP support will be deprecated in the future.

More details about the MoveFile configuration can be find here

production:
  vhost: "http://example.com"
  wordpress_path: "/var/www/your_site" # здесь указан абсолютный путь

  database:
    name: "database_name"
    user: "user"
    password: "password"
    host: "host"
    # port: "3308" # Использовать только в случае, если у вас есть ручные настройки сервера
    # mysqldump_options: "--max_allowed_packet=1G" # Доступно только через SSH

  exclude:
    - ".git/"
    - ".gitignore"
    - ".sass-cache/"
    - "node_modules/"
    - "bin/"
    - "tmp/*"
    - "Gemfile*"
    - "Movefile"
    - "wp-config.php"
    - "wp-content/*.sql"

   ssh:
     host: "host"
     user: "user"
     password: "password" # пароль является необязательным, будет использовать открытые ключи, если таковые имеются.
     port: 22 # Port is optional
     rsync_options: "--verbose" # Дополнительные опции rsync, необязательно
  #   gateway: # Gateway is optional
  #     host: "host"
  #     user: "user"
  #     password: "password" # пароль является необязательным, будет использовать открытые ключи, если таковые имеются.

If your host does not have SSH, you can change the SSH block to FTP

   ftp:
     host: "host"
     user: "user"
     password: "password" 
     passive: true
     scheme: "ftp" # по умолчанию "ftp", "ftps" также доступна

You can save this configuration now with Ctrl + X, Y and Enter to save and exit.

In Wordmove you can pull the installation from a remote server, it will pull from production to your local.

Wordmove commands must be run from the folder containing MoveFile!

wordmove pull -e production --all

Similarly, you can push your local installation that you were working on production.

wordmove push -e production --all

Here is a complete list Wordmov flags…Ubuntu-16.04-1024×475.jpg.webp?x69943″ alt=”Installing and Configuring Wordmove on Ubuntu 16.04″ width=”584″ height=”271″ srcset=”” sizes=”(max-width: 584px) 100vw, 584px”>

Sidebar