Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ijsto/strapi-plugin-migrate
Strapi-Plugin-Migrate helps to migrate Strapi data from one environment of your app to another. For example development > staging
https://github.com/ijsto/strapi-plugin-migrate
strapi strapi-cms strapi-plugin strapijs
Last synced: 10 days ago
JSON representation
Strapi-Plugin-Migrate helps to migrate Strapi data from one environment of your app to another. For example development > staging
- Host: GitHub
- URL: https://github.com/ijsto/strapi-plugin-migrate
- Owner: ijsto
- Created: 2020-08-04T01:37:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-22T12:38:07.000Z (about 3 years ago)
- Last Synced: 2024-09-17T15:04:30.173Z (about 2 months ago)
- Topics: strapi, strapi-cms, strapi-plugin, strapijs
- Language: JavaScript
- Homepage:
- Size: 282 KB
- Stars: 76
- Watchers: 4
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Strapi `plugin` Migrate
## About
Strapi Plugin Migrate let's you easily transfer user permissions, settings, and layouts between your Strapi instances.
More info
For an example, let's consider User Permissions - when you configure User Permissions for routes and roles in, for example, `development`, these settings are stored in your database and therefore are not transferred to your `production` environment.Until now normally you would have to manually sync these checkboxes in your target environment. `strapi-plugin-migrate` enables you to simply export a file from your `development` environment (or any other) to `production` (or any other).
Similarly - `strapi-plugin-migrate` enables the same for layout configuration and Strapi app Settings.
## Quick start
1 - Install the plugin in your Strapi project
```bash
npm i strapi-plugin-migrate
```or
```
yarn add strapi-plugin-migrate
```2 - Rebuild your Strapi app and clean your cache
```bash
yarn build --clean && yarn develop
```or
```bash
npm cache clean --force && npm run build && npm run develop
```3 - Go to your Settings > `Dashboard` (in the new `Migrate` section)
4 - Export your data by downloading a JSON file or Copying the Text string
5 - Import your data in the target environment
## Control access to the settings
By default, only admin panel users with `Super Admin`-role are able to access the settings of this plugin. Due to Strapi's restrictions you can't change this behavior if you are using the free Community Edition. When using Enterprise Edition you're able to adjust the settings for this plugin on the edit page of a role under Settings > Administration Panel > Roles > Select a role > Settings tab > Migrate. More information can be found [here](https://strapi.io/documentation/user-docs/latest/users-roles-permissions/configuring-administrator-roles.html#plugins-and-settings).
## Updating to new version
When updating to a new version, you will need to rebuild your Strapi admin UI for the changes to take effect.
This is how we would update to the latest version:
from your Strapi project root folder:
```bash
yarn add strapi-plugin-migrate@latest && yarn build --clean
```## Contributing to/Developing this plugin
Thank you for considering to contribute! To find out please read the [CONTRIBUTING.md](https://github.com/ijsto/strapi-plugin-migrate/blob/main/CONTRIBUTING.md).
Please make sure you read the contirbuting guide before making a PR.
#### Credits
Parts of the initial concept for a module in users permissions file JSON export was inspired by [@Alan2207](https://github.com/alan2207/strapi-plugin-sync-roles-permissions)