Closed ekremney closed 4 years ago
manifest.yml:
manifest.yml
packages: __APP_PACKAGE__: version: 1.0.0 license: Adobe-2006 actions: getDogs: function: dist/getVehicles runtime: nodejs:10 # action def. getCat: function: dist/getPets runtime: nodejs:10 # action def. apis: animal-service: # api name animal-service: # base path dogs: getDogs: method: get response: http cats: getCat: method: get response: http
After aio app:deploy, only/animal-service/dogs gets deployed. Here's the output:
aio app:deploy
/animal-service/dogs
> Build actions ℹ dist/actions/getDogs.zip ℹ dist/actions/getCat.zip ✔ Build actions no web-src, skipping web-src build > Deploy actions ℹ Info: Deploying package [actions-playground-1.5.4]... ℹ Info: package [actions-playground-1.5.4] has been successfully deployed. ℹ Info: Deploying action [actions-playground-1.5.4/getDogs]... ℹ Info: action [actions-playground-1.5.4/getDogs] has been successfully deployed. ℹ Info: Deploying action [actions-playground-1.5.4/getCat]... ℹ Info: action [actions-playground-1.5.4/getCat] has been successfully deployed. ℹ Info: Deploying api [animal-service]... ℹ Info: api [animal-service] has been successfully deployed. ℹ Success: Deployment completed successfully. ✔ Deploy actions no web-src, skipping web-src deploy Your deployed actions: -> https://<namespace>.adobeioruntime.net/api/v1/web/actions-playground-1.5.4/getDogs -> https://<namespace>.adobeioruntime.net/api/v1/web/actions-playground-1.5.4/getCat Well done, your app is now online
Cause of the problem seems to be relevant code piece iterating over apis only. It should be also iterating over basePaths. Please see:
apis
basePath
https://github.com/adobe/aio-cli-plugin-runtime/blob/master/src/runtime-helpers.js#L654
we suspect the gap where we take the first item only may also exist with rules/triggers/etc. o
PR available: https://github.com/adobe/aio-cli-plugin-runtime/pull/156
Fixed with #156
manifest.yml
:After
aio app:deploy
, only/animal-service/dogs
gets deployed. Here's the output:Cause of the problem seems to be relevant code piece iterating over
apis
only. It should be also iterating overbasePath
s. Please see:https://github.com/adobe/aio-cli-plugin-runtime/blob/master/src/runtime-helpers.js#L654