-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
6cf8fe6
commit 72b7111
Showing
4 changed files
with
39 additions
and
4 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
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,34 @@ | ||
--- | ||
layout: doc | ||
|
||
prev: | ||
text: Segmentation | ||
link: /deploy/segmentation | ||
|
||
next: | ||
text: Environments | ||
link: /deploy/environments | ||
|
||
--- | ||
|
||
# Resources | ||
|
||
Unsegmented files are not shared between different segments. This is a powerful feature that allows you to create isolated segments that can be deployed independently. To enable different segments to share state, i.e. a database connection, Jitar uses a resource system. | ||
|
||
## Resource files | ||
|
||
Jitar will search for resource files in the project directory. The resource files are named `*.resource.json`. Each file defines the `module` that should be used as a resource. It's not possible to define a specific function or class from a module as a resource. | ||
|
||
The file has the following structure. | ||
|
||
```json | ||
// app.resource.json | ||
[ | ||
"./integrations/authentication/module", | ||
"./integrations/database/module", | ||
"./integrations/filestore/module", | ||
"./integrations/notification/module" | ||
] | ||
``` | ||
|
||
It's possible to define multiple resource files within a project. This is useful in a monorepo setup where different modules might be managed by different teams. |
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