Tool for migrating Wings content to WordPress
Go to file
Arjan Adriaanse abaa3b2ae9 clarify credentials 2022-08-01 13:20:20 +02:00
mobiledoc-wp-renderer@d4176bfada initial 2021-01-25 15:25:44 +01:00
src clarify credentials 2022-08-01 13:20:20 +02:00
.babelrc initial 2021-01-25 15:25:44 +01:00
.gitignore Add content.json to gitignore 2021-11-19 15:33:06 +01:00
.gitmodules initial 2021-01-25 15:25:44 +01:00
README.md clarify credentials 2022-08-01 13:20:20 +02:00
browser-env.js initial 2021-01-25 15:25:44 +01:00
package.json add yarn dependency 2022-01-03 13:08:55 +01:00

README.md

wingspress

Tool for migrating Wings content to WordPress.

Requirements

Pull in mobile-doc-wp-renderer

git submodule init git submodule update

Build mobile-doc-wp-renderer

cd mobiledoc-wp-renderer
yarn install
yarn build
cd ..

yarn install

Install all the dependencies

yarn fetch

Fetches all content from Wings and saves it to content.json, requires setting environment variables, for example:

export WINGS_ENDPOINT=https://api.wings.dev
export WINGS_PROJECT=<PROJECT_ID>
export WINGS_APP_KEY=<APP_KEY>

These credentials can be generated by adding an App in the Wings admin backend.

yarn migrate

Converts all articles and pages that do not exist in WordPress yet and publishes them along with their media, requires setting environment variables, for example:

export WP_ENDPOINT=http://localhost:8000/wp-json
export WP_USER=<USERNAME>
export WP_PASSWORD=<APPLICATION_PASSWORD>

Note that using this API requires a specific application password which can be generated from the user management page.