You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add runtime property to Service / Function in service? #1517
We need a way to specify a runtime (As stated in #1470) so that we can compile the correct resources.
The question is if one service should be bound to a runtime (Add a runtime property in the Service.js class) or if one function should have a runtime property?
How should we implement this? Should this be a necessary property the user has to define in the serverless.yaml file (like already done with the provider property or should we auto detect the runtime (e.g. look into the code / the handler)?
Do you mean automatically creating include/exclude rules? Imho that should be something we can solve through the tempting. E.g. if you have a Java project we add the src folder automatically to your excludes. I don't think the packaging mechanism should have built-in exclusions depending on the language is this is more surprising than simply adding include/excludes through the tempting. Then they are in the serverless.yml and no surprise.
We do need it for setting it in the runtime attribute of the function of course.
Ok. The proposal is that one runtimes should be used throughout the whole service (they are service bound). We can add function bound runtimes later on.
Activity
flomotlik commentedon Jul 8, 2016
Do you mean automatically creating include/exclude rules? Imho that should be something we can solve through the tempting. E.g. if you have a Java project we add the src folder automatically to your excludes. I don't think the packaging mechanism should have built-in exclusions depending on the language is this is more surprising than simply adding include/excludes through the tempting. Then they are in the serverless.yml and no surprise.
We do need it for setting it in the runtime attribute of the function of course.
pmuens commentedon Jul 10, 2016
Yep. Agree. We should do this in the templates (another plugin for this would be overkill).
pmuens commentedon Jul 11, 2016
Ok. The proposal is that one runtimes should be used throughout the whole service (they are service bound). We can add function bound runtimes later on.
pmuens commentedon Jul 12, 2016
Done with #1536