Skip to content
Snippets Groups Projects
Commit 730afad0 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

run services locally

parent 211d02e3
No related branches found
No related tags found
1 merge request!29feat: run services locally
This commit is part of merge request !29. Comments created here will be created in the context of that merge request.
......@@ -21,4 +21,26 @@ File location is determined after the build, see [here](https://forge.grandlyon.
## Ecolyo services
Service code are located under ``src\targets\services``.
Service code are located under `src\targets\services`.
## Run services
### On alpha
To run services on alpha, a script `get_instance_triggers.sh` allows you to get triggers associated with services. You can find the corresponding service by looking at the trigger frequency and comparing it with our [manifest.webapp](https://forge.grandlyon.com/web-et-numerique/factory/llle_project/ecolyo/-/blob/dev/manifest.webapp#L171).
Then you need to run the script `launch_instance_trigger.sh`.
### Locally
To run services on a local dev environment, you need to run a build first.
Then you need to run :
```sh
yarn run cozy-konnector-dev -m manifest.webapp <service.js>
# example
yarn run cozy-konnector-dev -m manifest.webapp ./build/services/enedisHalfHourMonthlyAnalysis/ecolyo.js
```
More details on the [cozy docs / Services / Execution](https://docs.cozy.io/en/howTos/dev/services/#execution).
......@@ -76,7 +76,7 @@ nav:
- Remote Doctypes: ecolyo/technical/remote_doctypes.md
- Scaffolding: ecolyo/technical/scaffolding.md
- Services:
- Description: ecolyo/technical/services/index.md
- Introduction: ecolyo/technical/services/index.md
- Monthly report notification: ecolyo/technical/services/monthly_report_notification.md
- Aggregator usage events: ecolyo/technical/services/aggregator_usage_events.md
- Consumption Alert: ecolyo/technical/services/consumption_alert.md
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment