diff --git a/assets/openapi/server-template/js/index.mustache b/assets/openapi/server-template/js/index.mustache index a876507f..27aa2445 100644 --- a/assets/openapi/server-template/js/index.mustache +++ b/assets/openapi/server-template/js/index.mustache @@ -1,6 +1,6 @@ -const config = require('./generated/config'); -const logger = require('./generated/logger'); -const ExpressServer = require('./generated/expressServer'); +const config = require('../mify-generated/services/{{serviceName}}/config'); +const logger = require('../mify-generated/services/{{serviceName}}/logger'); +const ExpressServer = require('../mify-generated/services/{{serviceName}}/expressServer'); const launchServer = async () => { try { diff --git a/cmd/mify/cmd/root.go b/cmd/mify/cmd/root.go index 03a51a88..f76b6ae2 100644 --- a/cmd/mify/cmd/root.go +++ b/cmd/mify/cmd/root.go @@ -95,7 +95,7 @@ func PersistentPostRun(cmd *cobra.Command, args []string) { appContext.InitStatsCollector(desc.GetStatsQueueFile()) appContext.StatsCollector.LogCobraCommandExecuted(cmd) - _ = appContext.StatsCollector.MaybeSendStats() + //_ = appContext.StatsCollector.MaybeSendStats() // TODO: return logger when it will be possible to write log to file only // err := appContext.StatsCollector.MaybeSendStats() // if err != nil { diff --git a/pkg/generator/steps/mify-generated/tpl/py-services/mify_generated/services/_service_/core/service_context.py.tpl b/pkg/generator/steps/mify-generated/tpl/py-services/mify_generated/services/_service_/core/service_context.py.tpl index 6b2ee0c7..2a3ee2bf 100644 --- a/pkg/generator/steps/mify-generated/tpl/py-services/mify_generated/services/_service_/core/service_context.py.tpl +++ b/pkg/generator/steps/mify-generated/tpl/py-services/mify_generated/services/_service_/core/service_context.py.tpl @@ -27,6 +27,7 @@ class MifyServiceContext: def with_extra(self, extra): self._extra = extra(self) + return self @property def hostname(self):