如何在cloudfoundry上运行expo(react native)应用程序(例如IBM Cloud)?

问题描述 投票:1回答:1

在本地运行expo时,使用:

yarn start

您将获得可以在expo应用程序上打开的QR码或URL。您可以选择3个网址:

  1. 隧道
  2. LAN
  3. 本地

我的问题是,如何通过托管其他地方来做同样的事情?我试图做export,但通过查看dist文件夹,没有index.html文件。或者另一个文件将是主文件?

我正试图将它作为基于cloudfoundry的静态托管,如IBM Cloud / Bluemix。

请指教。谢谢!

reactjs react-native ibm-cloud cloudfoundry expo
1个回答
0
投票

根据https://docs.expo.io/versions/latest/distribution/hosting-your-app/提供的文本,您不应该生成可以通过常规Web浏览器访问的最终“Web应用程序”。相反,您提供了可以由“Expo”客户端使用的静态内容。

$ ls -1d dist/*
dist/android-index.json
dist/assets
dist/bundles
dist/ios-index.json

您期望服务的是android / ios-index.json文件和assest / bundles。

© www.soinside.com 2019 - 2024. All rights reserved.