简体   繁体   English

SAP WEB IDE 中的移动应用程序构建从移动服务中提取错误的应用程序 ID

[英]Mobile App build in SAP WEB IDE is pulling in the wrong App Id from Mobile Services

When Deploying a Mobile app from Web IDE to Mobile services, the app Details in appconfig.js config.xml are being pulled from the incorrect mobile services sub-account.将移动应用从 Web IDE 部署到移动服务时,appconfig.js config.xml 中的应用详细信息是从错误的移动服务子帐户中提取的。

This can be corrected by deleting the app in mobile services and building again.这可以通过删除移动服务中的应用程序并重新构建来纠正。

Eg例如

Mobile app built in DEV sub-account (fine). DEV 子账户内置的移动应用程序(很好)。

WEB IDE Codebase pushed to Git repo (bitbucket) - Pulled into TEST sub-account WEB-IDE. WEB IDE 代码库推送到 Git 存储库 (bitbucket) - 拉入 TEST 子帐户 WEB-IDE。

App is built in TEST WEB IDE which deploys to TEST mobile services (fine).应用程序内置于 TEST WEB IDE 中,可部署到 TEST 移动服务(很好)。

The above works as there was no previous instance of the App in mobile services in both DEV and TEST enviroments.上述工作是因为在 DEV 和 TEST 环境中的移动服务中没有应用程序的先前实例。

However, When making changes to the App in WEB IDE, our troubles started.但是,当在WEB IDE中对App进行更改时,我们的麻烦就开始了。

We made a change to the project in DEV, built it again, no problem.我们在 DEV 中对项目进行了更改,重新构建,没问题。

However, pushed these changes and pulled into TEST WEB IDE, and built the mobile app again in TEST, the app details (appconfig.js, config.xml) were pulled in from DEV as opposed to TEST.但是,推送这些更改并拉入 TEST WEB IDE,并在 TEST 中再次构建移动应用程序,应用程序详细信息(appconfig.js、config.xml)是从 DEV 拉入的,而不是 TEST。

... We corrected this in TEST by deleted the app in mobile services and building again. ... 我们在 TEST 中通过删除移动服务中的应用程序并重新构建来更正此问题。 Pushing the changes to bitbucket.将更改推送到 bitbucket。

However, pulling the project back into DEV gives the same issue in that it's now pulling the app details from TEST!但是,将项目拉回 DEV 会产生同样的问题,因为它现在正在从 TEST 中提取应用程序详细信息!

Could you please help with the following...你能帮忙解决以下问题吗...

a) Is deleting the app in mobile services the only solution. a) 删除移动服务中的应用程序是唯一的解决方案。 If it is this isn't workable as it involves removing and reconfiguring the app in mobile services for each update.如果是这样,这是不可行的,因为它涉及为每次更新删除和重新配置移动服务中的应用程序。 The app has offline config which needs to be set up every time.该应用程序具有离线配置,每次都需要进行设置。

b) What is your recommended method for deploying changed through a landscape of DEV, TEST, (and eventually PROD). b) 您推荐的通过 DEV、TEST(以及最终 PROD)部署变更的方法是什么? Are we approaching this the right way?我们是否以正确的方式解决这个问题?

It would be great if we could resolve the problem of WEB IDE / mobile services apparently losing their connection as above.如果我们能解决 WEB IDE / 移动服务显然失去连接的问题,那就太好了。

We don't manually update the configuration files when building the Mobile App.在构建移动应用程序时,我们不会手动更新配置文件。

I thought also that the issue may be the project.json file which is being pushed to git.我还认为问题可能是被推送到 git 的 project.json 文件。 But I changed this to the correct app ID and it still pulls across from the wrong sub-account.但是我将其更改为正确的应用程序 ID,它仍然从错误的子帐户中拉过来。

Resolved by adding project.json, config.xml and appconfig.json to gitignore.通过将 project.json、config.xml 和 appconfig.json 添加到 gitignore 解决。

This way, any sub-account setting aren't overwritten when pulling the project from Git.这样,从 Git 拉取项目时,任何子帐户设置都不会被覆盖。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM