-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Configurations Sync | ||
|
||
All admin panel configurations are automatically stored in the `motor-admin.yml` file. It's recommended to include this file in the application git repository to always have the admin panel configurations in sync across different local and remote environments. Configurations from the `motor-admin.yml` file are loaded automatically each time the file changes via `git push` or `rsync`. | ||
|
||
It's possible to sync local development admin panel configurations with remote production application via `rake motor:sync` task: | ||
|
||
```bash | ||
MOTOR_SYNC_REMOTE_URL=https://remote-app-url/ MOTOR_SYNC_API_KEY=secure-random-string ./motor-admin sync | ||
``` | ||
|
||
### Docker | ||
|
||
```bash | ||
docker run -it -e MOTOR_SYNC_REMOTE_URL=https://remote-app-url/ -e MOTOR_SYNC_API_KEY=secure-random-string motoradmin/motoradmin:latest ./motor-admin sync | ||
``` | ||
|
||
### Docker Compose | ||
|
||
```bash | ||
docker compose run app ./motor-admin sync | ||
``` |