-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📝 Clarify plugin deployment on nested dirs
- Loading branch information
Showing
2 changed files
with
30 additions
and
8 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 |
---|---|---|
|
@@ -40,11 +40,9 @@ To quick start a new plugin, you can clone the link:https://github.com/SoftInsti | |
[source,bash] | ||
---- | ||
$ git clone --depth 1 [email protected]:SoftInstigate/restheart-plugin-skeleton.git && cd restheart-plugin-skeleton | ||
$ ./bin/rh.sh build -o "-s" | ||
$ ./mvnw clean package && docker run --name restheart --rm -p "8080:8080" -v ./target:/opt/restheart/plugins/custom softinstigate/restheart -s | ||
---- | ||
|
||
The script `./bin/rh.sh` automatically builds, deploys the plugin and restart RESTHeart to apply changes. At first run, it also automatically downloads the latest version of RESTHeart. | ||
|
||
The project skeleton defines a dummy Service bound at `/srv`: | ||
|
||
[source] | ||
|
@@ -198,7 +196,7 @@ Available providers allow to inject the following objects: | |
- `@Inject("registry")` - injects the `PluginsRegistry` singleton that allows a plugin to get the reference of other plugins. | ||
- `@Inject("mclient")` - injects the `MongoClient` object that has been already initialized and connected to MongoDB by the `mongo-client-provider`. | ||
- `@Inject("mclient-reactive")` - injects the reactive `MongoClient` object that has been already initialized and connected to MongoDB by the `mongo-client-provider`. | ||
- `@Inject("acl-registru")` - injects the ACL registry to define permission programmatically | ||
- `@Inject("acl-registry")` - injects the ACL registry to define permission programmatically | ||
|
||
[source,java] | ||
---- | ||
|