MarketplaceKit
MarketplaceKit is a gem for Marketplace Platform users.
Installation
Install it yourself as:
$ gem install marketplace-kit
Configuration
- Go to marketplace folder you are working on
- Ensure
marketplace_builder
directory exists - Create
marketplace_builder/.builder
file with endpoint names and their urls{ "staging": { "url": "https://staging-url.near-me.com" }, "production": { "url": "https://production-url.near-me.com" } }
Usage
marketplace-kit <command> [flags]
Available flags
Flag | For command | Description |
---|---|---|
-e <endpoint> |
all | Specifies endpoint. Endpoint name is the key inside the .builder config file |
-f / --force |
deploy | When added to deploy command it will deploy all the files (also those not changed) to specified endpoint |
Available commands
All commands should be run in the marketplace directory (ie. marketplace-nearme/
)
Command | Description |
---|---|
pull |
Pulls files from database and saves them in the filesystem |
sync |
Watches filesystem and updates specified endpoint on every file change inside marketplace_builder directory |
deploy |
Updates database using the filesystem as a source. By default this command is trying to send only files that changed since the last deploy |
Examples
marketplace-kit pull -e qa
marketplace-kit sync -e production
marketplace-kit deploy -f -e staging